Skip to content

Instantly share code, notes, and snippets.

@seleniumgists
Created September 24, 2020 21:23
Show Gist options
  • Save seleniumgists/3eedb21e39442aa38b4b2175613a1ea6 to your computer and use it in GitHub Desktop.
Save seleniumgists/3eedb21e39442aa38b4b2175613a1ea6 to your computer and use it in GitHub Desktop.
generated automatically from #selenium on seleniumhq slack
Wait<WebDriver> wait = new FluentWait<>(driver)
.withTimeout(Duration.ofSeconds(30))
.pollingEvery(Duration.ofMillis(100))
.ignoring(StaleElementReferenceException.class)
.ignoring(NoSuchElementException.class);
WebElement element = wait.until(ExpectedConditions.elementToBeClickable(locator));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment