waitForEnabled
Wait for an element (selected by css selector) for the provided amount of milliseconds to be (dis/en)abled. If multiple elements get queried by given selector, it returns true if at least one element is (dis/en)abled.
Usage#
Parameters#
| Name | Type | Details |
|---|---|---|
| options optional | WaitForOptions | waitForEnabled options (optional) |
| options.timeout optional | Number | time in ms (default: 500) |
| options.reverse optional | Boolean | if true it waits for the opposite (default: false) |
| options.timeoutMsg optional | String | if exists it overrides the default error message |
| options.interval optional | Number | interval between checks (default: waitforInterval) |
Examples#
index.html
waitForEnabledExample.js