Automation Question:

Download Job Interview Questions and Answers PDF

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

Automation Interview Question
Automation Interview Question

Answer:

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

Download Automation Interview Questions And Answers PDF

Previous QuestionNext Question
Do you know how to verify if the checkbox/radio is checked or not?Tell me what is a keyword-driven framework?