in Selenium by
How to handle hidden elements in Selenium WebDriver?

1 Answer

0 votes
by
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

+1 vote
asked Aug 22, 2019 in Selenium by john ganales
0 votes
asked Aug 22, 2019 in Selenium by john ganales
0 votes
asked Aug 22, 2019 in Selenium by john ganales
...