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

▼ Show 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();");
Selenium
Learn More with Madanswer

Related questions

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