InterviewSolution
| 1. |
What is an explicit wait? |
|
Answer» WEBDRIVER has various wait commands that help to overcome issues due to variation in a time lag. WebDriver checks WHETHER an element is present or VISIBLE or ENABLED or clickable etc. The explicit wait tells the WebDriver to wait for certain conditions (Expected Conditions) or wait till the maximum time exceeded before throwing an exception. The explicit wait is an INTELLIGENT wait but can be applied only on specified elements. As explicit wait waits for dynamically loaded Ajax elements, it is a better option than implicit wait. We need to provide “ExpectedConditions” along with Explicit wait. Syntax: WebDriverWait wait = new WebDriverWait(WebDriverReference,TimeOut);Below is the list of Expected Conditions used in Explicit Wait
|
|