OptionalerrorOptional error message to throw on timeout.
OptionalintervalDelay between condition checks in milliseconds, or a function returning the next delay.
Can also be async.
Defaults to 100.
OptionaltimeoutMaximum time to wait before throwing an error, in milliseconds.
Defaults to 5000.
Options for the
waitForfunction.