* 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)
| 325 | * @see webdriver.WebDriver#isEnabled |
| 326 | */ |
| 327 | function 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. |