What is the isDisplayed() method in Selenium?

What is the isDisplayed() method in Selenium?

1 Like

Hey Anna,

isDisplayed() is the method used to verify if a certain element is being displayed on the web page. If this function returns true, it indicates that the element is displayed and if it returns false, it indicates that the element is not displayed.

The element could be hidden at the initial load of the page and could be made visible later on by using some client side script. In such cases, you can use this function to verify if the element is visible.

To deep dive into How To Use isDisplayed() In Selenium WebDriver, please go through the following article: