Aug 22, 2019 in Selenium
Q: How to handle hidden elements in Selenium WebDriver?

1 Answer

0 votes
Aug 22, 2019
It is one of the most important selenium interview questions.

We can handle hidden elements by using javaScript executor

(JavascriptExecutor(driver)).executeScript("document.getElementsByClassName(ElementLocator).click();");

1

(JavascriptExecutor(driver)).executeScript("document.getElementsByClassName(ElementLocator).click();");

Related questions

0 votes
Aug 22, 2019 in Selenium
0 votes
Aug 22, 2019 in Selenium
...