F.wait()
FuncUnit.wait
wait(time, success)
Waits a timeout before running the next command. Wait is an action and gets added to the queue.
F.wait(100, function(){
equals(F('#foo').innerWidth(), 100, "innerWidth is 100");
})
Parameters
-
time
{Number}
OptionalThe timeout in milliseconds. Defaults to 5000.
-
success
{function()}
OptionalA callback that will run after the wait has completed, but before any more queued actions.