Condition

Defines a condition for use with WebDriver's wait command.

Constructor

new Condition(message, fn)

Parameters:
NameTypeDescription
messagestring

A descriptive error message. Should complete the sentence "Waiting [...]"

fnfunction

The condition function to evaluate on each iteration of the wait loop.

Members

fn :function

Type:
  • function

Methods

description() → {string}

Returns:

A description of this condition.

Type: 
string