Styrow.dev
Question 55 of 64

How to handle hidden elements in Selenium WebDriver?

Question

How to handle hidden elements in Selenium WebDriver?

Answer

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();"");