waitForText

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

Usage

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