MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / elementIsNotVisible

Function elementIsNotVisible

javascript/selenium-webdriver/lib/until.js:301–305  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

299 * @see ./webdriver.WebDriver#isDisplayed
300 */
301function 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.

Callers

nothing calls this directly

Calls 1

isDisplayedMethod · 0.65

Tested by

no test coverage detected