Automation Question:
Download Job Interview Questions and Answers PDF
Explain me how to check if an element is visible on the page?
![Automation Interview Answer Automation Interview Question](https://globalguideline.com/public/images/interview/27.png)
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();
driver.findElement(By.id(“id_of_element”)).isDisplayed();
Download Automation Interview Questions And Answers
PDF
Previous Question | Next Question |
Do you know how to verify if the checkbox/radio is checked or not? | Tell me what is a keyword-driven framework? |