waitForSelected
Wait for an option or radio/checkbox element (selected by css selector) for the provided amount of milliseconds to be (un)selected or (un)checked. If multiple elements get queryied by given selector, it returns true (or false if reverse flag is set) if at least one element is (un)selected.
Usage
1 | client.waitForSelected(selector[,ms][,reverse]).then(callback); |
Parameters
Param | Type | Details |
---|---|---|
selector | String | element to wait for |
ms optional |
Number | time in ms (default: 500) |
reverse optional |
Boolean | if true it waits for the opposite (default: false) |