Skip to content
RED SAG Skills
mediumStudy question · answer published in Automation Testing interview questions, so no pointsui-automationseleniumwaits

A wait that ignores early errors

A status label appears after a few seconds. Which Selenium FluentWait setup waits up to 20 seconds, checks every 500 ms and ignores "not found" errors while waiting?

Wait<WebDriver> wait = new FluentWait<>(driver)
    .withTimeout(Duration.ofSeconds(20))
    .pollingEvery(Duration.ofMillis(500))
    .ignoring(NoSuchElementException.class);
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions