Created
August 7, 2015 22:38
-
-
Save LenarBad/0fb7be8051cb6188d0f7 to your computer and use it in GitHub Desktop.
Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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