Answers

Question and Answer:

  Home  Automation

⟩ Explain me how to check if an element is visible on the page?

The return method type is logical. If it returns true then element is visible otherwise it is not. isDisplayed() method could be used for it:

driver.findElement(By.id(“id_of_element”)).isDisplayed();

 130 views

More Questions for you: