Optional
errorOptional error message to throw on timeout.
Optional
intervalDelay between condition checks in milliseconds, or a function returning the next delay.
Can also be async.
Defaults to 100
.
Optional
timeoutMaximum time to wait before throwing an error, in milliseconds.
Defaults to 5000
.
Options for the
waitFor
function.