waitForValue

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

Usage

1
client.waitForValue(selector[,ms][,reverse]).then(callback);

Parameters

Param Type Details
selector String element to wait
ms
optional
Number time in ms (default: 500)
reverse
optional
Boolean if true it waits for the opposite (default: false)

Uses