How to click on hidden element in Selenium WebDriver?
I have a grid which displays some records. When I click on a record and inspect that element it is shown that it is hidden but it is visible in the grid.
My HTML is:
<a href="http://192.168.1.6/eprint_prod_3.8/settings/othercost_add.aspx?type=edit&id=805" title="Plastic Spiral Bind"
<div style="float: left; width: 99%; overflow: hidden; height: 15px; overflow: hidden"> Plastic Spiral Bind </div>
The above code is hidden while inspecting but it is visible in grid.
driver.findElement(By.partialLinkText("Plastic Spiral Bind")).click();
- You must login to post comments