• function

visible FuncUnit.prototype.visible

 

visible([timeout] [,success] [,message])

Waits until the funcUnit selector is visible.

//waits until #foo is visible.
S("#foo").visible()

Parameters

  1. timeout {Number}Optional

    overrides FuncUnit.timeout. If provided, the wait will fail if not completed before this timeout.

  2. success {function()}Optional

    a callback that runs after the funcUnit is visible, but before the next action.

  3. message {String}Optional

    if provided, an assertion will be passed when this wait condition completes successfully

Returns

{funcUnit}

returns the funcUnit for chaining.