• function

invisible FuncUnit.prototype.invisible

 

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

Waits until the selector is invisible.

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

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 selector is invisible, 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 selector for chaining.