public void waitForWebElementFluentlyPredicate(){
new FluentWait<WebElement>(countdown).
withTimeout(10, TimeUnit.SECONDS).
pollingEvery(100,TimeUnit.MILLISECONDS).
until(new Predicate<WebElement>() {
@Override
public boolean apply(WebElement element)
{ return element.getText().endsWith("04");
}
} );
}
Thanks
Sunny
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+unsubscribe@googlegroups.com.
To post to this group, send email to webd...@googlegroups.com.
Visit this group at https://groups.google.com/group/webdriver.
For more options, visit https://groups.google.com/d/optout.
Remove deprecated `FluentWait.until(Predicate<?>)` method. This should make lambdas work properly with Wait instances now.
Hence I used the below code
wait.until((driver)->driver.findElement(by).getText().endsWith("04"));
Thanks
Sunny Sachdeva
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+unsubscribe@googlegroups.com.