Skip to main content

Function: waitForElementToBeRemoved()

waitForElementToBeRemoved(elementOrCallback, options?): Promise<void>

Defined in: wait-for.ts:62

Waits for an element to be removed from the widget tree.

Parameters

ParameterTypeDescription
elementOrCallbackElementOrCallbackThe element to watch or a callback returning the element
options?WaitForOptionsWait options (timeout, interval, onTimeout)

Returns

Promise<void>

Promise resolving when the element is removed

Throws

If the element is already removed when called, or if timeout is reached