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

Function elementIsEnabled

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

* Creates a condition that will wait for the given element to be enabled. * * @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

312 * @see webdriver.WebDriver#isEnabled
313 */
314function elementIsEnabled(element) {
315 return new WebElementCondition('until element is enabled', function () {
316 return element.isEnabled().then((v) => (v ? element : null))
317 })
318}
319
320/**
321 * Creates a condition that will wait for the given element to be disabled.

Callers

nothing calls this directly

Calls 1

isEnabledMethod · 0.65

Tested by

no test coverage detected