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

Function elementIsNotSelected

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

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

(element)

Source from the content-addressed store, hash-verified

350 * @see webdriver.WebDriver#isSelected
351 */
352function elementIsNotSelected(element) {
353 return new WebElementCondition('until element is not selected', function () {
354 return element.isSelected().then((v) => (v ? null : element))
355 })
356}
357
358/**
359 * Creates a condition that will wait for the given element's

Callers

nothing calls this directly

Calls 1

isSelectedMethod · 0.65

Tested by

no test coverage detected