What is an explicit wait in Selenium?
Hello Matthew-phillips,
An explicit wait is a type of wait that is applied to a particular web element until the expected condition specified is met.
WebDriverWait wait = new WebDriverWait(driver, 10);
WebElement element = wait.until(ExpectedConditions.elementToBeClickable(By.id("elementId")));
It is advisable to use explicit waits over implicit waits because a higher timeout value of implicit wait (set for handling only some of the slow elements) gets applied to all the web elements. Thus increasing the overall execution time of the script. On the other hand, we can apply different timeouts to the different elements in case of explicit waits.