6654/clicking-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 code 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> </a>
Selenium code for the same:
driver.findElement(By.partialLinkText("Plastic Spiral Bind")).click();
let us first store that element in the object, and then use the below code to click on that hidden element:
JavascriptExecutor js = (JavascriptExecutor)driver; js.executeScript("arguments[0].click();", element);
public class SiblingAndParentInXpath { ...READ MORE
Here, I give you working script which ...READ MORE
Well let's not call it "Hierarchy". But, ...READ MORE
Below code will help you: To check Element ...READ MORE
The better way to handle this element ...READ MORE
enable trusted connection in internet explorer by ...READ MORE
To Allow or Block the notification, access using Selenium and you have to ...READ MORE
xpath are two types. 1) Absolute XPath: /html/b ...READ MORE
I am not sure if WebDriver can retrieve ...READ MORE
Hi , you want to know only is ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.