Created
July 11, 2019 08:12
-
-
Save seleniumgists/5fc9c15f40650970657e6ff022916a98 to your computer and use it in GitHub Desktop.
generated automatically from #selenium on seleniumhq slack
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 static ExpectedCondition<Boolean> elementNotPresent(By selector) { | |
return new ExpectedCondition<Boolean>() { | |
@Override | |
public Boolean apply(WebDriver driver) { | |
return driver.findElements(selector).size() == 0; | |
} | |
@Override | |
public String toString() { | |
return selector.toString() + " to disappear"; | |
} | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment