Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WebDriverWait wait = new WebDriverWait(driver, interval);
- wait.until(new ExpectedCondition<Boolean>() {
- public Boolean apply(WebDriver driver) {
- boolean value = <some condition>
- if (value) {
- return true;
- } else
- return false;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement