Using lambda expression with Selenium3 ExpectedCondition?
I have been using below code for the past few years, How to use lambda expression to handle expected condition
Wait<WebDriver> wait = new FluentWait<WebDriver>(getDriver())
.withTimeout(10, TimeUnit.SECONDS)
.pollingEvery(5),TimeUnit.SECONDS)
.ignoring(NoSuchElementException.class);
wait.until(ExpectedConditions.visibilityOfElementLocated(by));
+3
source to share
No one has answered this question yet
Check out similar questions: