Selenium working of Fluentwaits

0 votes

I have this code which involves the use of fluentwait(). Can someone please explain its structure and how it works? 

Wait<WebDriver> wait = new FluentWait<>(driver)
.withTimeout(30, TimeUnit.SECONDS)
.pollingEvery(2, TimeUnit.SECONDS)
.ignoring(NoSuchElementException.class);

wait.until(new com.google.common.base.Function<WebDriver, Boolean>() {
@Override
public Boolean apply(WebDriver driver) {
    return null;
}
});
Apr 13, 2018 in Selenium by kappa3010
• 2,090 points
1,679 views