I am trying to click on a on card inside a container. I have tried id, class,xpath but it doesn't find it. I unsure on what else to try to be able to get the element.
here is the code of the element I want to click on:
<div class="mtable" id="w-card" status="83" entertainer="1799">
<div class="mtable-cell wc-gray-dark" id="widget-icon" style="border-color: ">
<div class="caption"><img src="/images/default_entertainer_image.jpg" class="caption-img"></div>
</div>
<div class="mtable-cell wc-white" id="widget-text">
<div>
<h6>
<span id="status-83" class="label label-default ">
<span class="entertainer-name">Testing</span>
<br>Testing100
<br>Last Seen: never
</span>
</h6>
</div>
<div id="timers">
<div id="lastChange" class="pull-left"></div>
<div id="circle" class="pull-right"></div>
</div>
</div>
</div>
selenium code:
driver.findElement(By.xpath("//*[@id=\"w-card\"]")).click();
I have run display tests on all of the child elements of the div as well webdriver is finding it but is saying it's not displayed?