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);Discussion 0
Join free to post in the discussion.
Related questions
- Choosing a stable locatorAutomation Test Engineer
- Waiting for an elementAutomation Test Engineer
- Headless modeAutomation Test Engineer
- How Selenium talks to a browserAutomation Test Engineer
- Finding a button by role and nameAutomation Test Engineer
- Recording a first draft of a testAutomation Test Engineer
- Stepping through a failing testAutomation Test Engineer
- What a browser context gives youAutomation Test Engineer