* 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)
| 337 | * @see webdriver.WebDriver#isSelected |
| 338 | */ |
| 339 | function 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. |
nothing calls this directly
no test coverage detected