* Creates a condition that will wait for the given element to become visible. * * @param {!./webdriver.WebElement} element The element to test. * @return {!WebElementCondition} The new condition. * @see ./webdriver.WebDriver#isDisplayed
(element)
| 285 | * @see ./webdriver.WebDriver#isDisplayed |
| 286 | */ |
| 287 | function elementIsVisible(element) { |
| 288 | return new WebElementCondition('until element is visible', function () { |
| 289 | return element.isDisplayed().then((v) => (v ? element : null)) |
| 290 | }) |
| 291 | } |
| 292 | |
| 293 | /** |
| 294 | * Creates a condition that will wait for the given element to be in the DOM, |
nothing calls this directly
no test coverage detected