Skip to content

Instantly share code, notes, and snippets.

@LenarBad LenarBad/
Created Aug 7, 2015

What would you like to do?
public void forExistence(final By by) {
(new WebDriverWait(driver, AppProps.TIME_OUT))
.until(new ExpectedCondition<Boolean>() {
public Boolean apply(WebDriver d) {
return d.findElements(by).size() > 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.