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

Function elementIsSelected

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

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

337 * @see webdriver.WebDriver#isSelected
338 */
339function elementIsSelected(element) {
340 return new WebElementCondition('until element is selected', function () {
341 return element.isSelected().then((v) => (v ? element : null))
342 })
343}
344
345/**
346 * Creates a condition that will wait for the given element to be deselected.

Callers

nothing calls this directly

Calls 1

isSelectedMethod · 0.65

Tested by

no test coverage detected