waitForEnabled

Wait for an element (selected by css selector) for the provided amount of milliseconds to be (dis/en)abled. If multiple elements get queryied by given selector, it returns true (or false if reverse flag is set) if at least one element is (dis/en)abled.

Usage

1
client.waitForEnabled(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)

Uses