June 2017
Intermediate to advanced
256 pages
5h 38m
English
Fluent wait is a type of explicit wait where we can define polling intervals and ignore certain exceptions to proceed with further script execution even if the element is not found.
So, when we specify a fluent wait, we provide the following:
A simple example of a fluent wait implementation is as follows:
Wait wait = new FluentWait(appiumDriver) .withTimeout(10, TimeUnit.SECONDS) .pollingEvery(250, TimeUnit.MILLISECONDS) .ignoring(NoSuchElementException.class) .ignoring(TimeoutException.class);wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("text1")));
Let's implement ...
Read now
Unlock full access