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

Function elementIsVisible

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

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

Source from the content-addressed store, hash-verified

285 * @see ./webdriver.WebDriver#isDisplayed
286 */
287function 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,

Callers

nothing calls this directly

Calls 1

isDisplayedMethod · 0.65

Tested by

no test coverage detected