* Creates a condition that will wait for the given element to be in the DOM, * yet not visible to the user. * * @param {!./webdriver.WebElement} element The element to test. * @return {!WebElementCondition} The new condition. * @see ./webdriver.WebDriver#isDisplayed
(element)
| 299 | * @see ./webdriver.WebDriver#isDisplayed |
| 300 | */ |
| 301 | function elementIsNotVisible(element) { |
| 302 | return new WebElementCondition('until element is not visible', function () { |
| 303 | return element.isDisplayed().then((v) => (v ? null : element)) |
| 304 | }) |
| 305 | } |
| 306 | |
| 307 | /** |
| 308 | * Creates a condition that will wait for the given element to be enabled. |
nothing calls this directly
no test coverage detected