.missing()

  • function
FuncUnit.prototype.missing  

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

Waits until no elements are matched by the selector. Missing is equivalent to calling .size(0, success);

//waits until #foo leaves before continuing to the next action.
F("#foo").missing()

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 is run after the selector exists, 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.