I want to click on element which appears like a button on webpage using style attribute of div tag.
But I am not able to do so. I referred stack overflow but with the help of that its returning blank element . I don't want any text. I want that it should be clicked and the list appears and I want to select one item from that list. So how to do that?
Below is my code :
<div style="width: auto; height: 386px;" class="QvGraph">
<img src=" " style="width: 710px; height: 386px; cursor: crosshair; visibility: visible; display: block;"></img>
<div style="cursor: pointer; position: absolute; top: 4px; left: 588px; height: 18px; width: 27px;" class="Qv_Hotspot"></div>
<div style="cursor: pointer; position: absolute; top: 3px; left: 3px; height: 18px; width: 18px;" class="Qv_Hotspot"></div></div>
</div>
I have tried this below code, but it didn't get work for me.
driver.findElement(By.xpath("//div[@class ='Qv_HotSpot']")).getAttribute("cursor: pointer; position: absolute; top: 4px; left: 588px; height: 18px; width: 27px;");
I am badly stuck here .Thanks in advance !