FuncUnit.static.wait  function     

Waits a timeout before running the next command. Wait is an action and gets added to the queue.

S.wait(100, function(){
  equals( S('#foo').innerWidth(), 100, "innerWidth is 100");
})
FuncUnit.wait(time, callback) -> undefined
{optional:Number}

The timeout in milliseconds. Defaults to 5000.

{optional:Function}

A callback that will run after the wait has completed, but before any more queued actions.

{undefined}
© Jupiter IT - JavaScriptMVC Training and Support