Testing / Selenium Interview questions
List the different types of waits in Selenium?
Selenium provides three distinct waiting mechanisms, each suited to a different situation.
| Wait type | Behavior |
| Implicit wait | Global polling timeout applied to every findElement call |
| Explicit wait | Targeted wait for a specific condition on a specific element |
| Fluent wait | Explicit wait with configurable polling interval and ignored exceptions |
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(15)); wait.until(ExpectedConditions.elementToBeClickable(By.id("submit")));
Explicit waits, built around WebDriverWait and ExpectedConditions, are generally the recommended default because they target exactly the condition a specific step needs, rather than applying a blanket delay to the whole session.
More Related questions...