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

Function elementIsDisabled

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

* Creates a condition that will wait for the given element to be disabled. * * @param {!./webdriver.WebElement} element The element to test. * @return {!WebElementCondition} The new condition. * @see webdriver.WebDriver#isEnabled

(element)

Source from the content-addressed store, hash-verified

325 * @see webdriver.WebDriver#isEnabled
326 */
327function elementIsDisabled(element) {
328 return new WebElementCondition('until element is disabled', function () {
329 return element.isEnabled().then((v) => (v ? null : element))
330 })
331}
332
333/**
334 * Creates a condition that will wait for the given element to be selected.

Callers

nothing calls this directly

Calls 1

isEnabledMethod · 0.65

Tested by

no test coverage detected