WaitForDisappearance Method

Class

AnyWin class.

Action

Waits until an object no longer exists or the timeout value is reached.

Availability

This method is supported only in scripts that use the Open Agent and dynamic object recognition.

Syntax

WaitForDisappearance ([timeout])
Variable Description
timeout Optional: Number of seconds that Silk Test Classic waits for the object to disappear. The agent waits for the object until the timeout value expires. NUMBER.

Notes

If the object does not disappear before the timeout occurs, an E_WINDOW_NOT_FOUND exception is thrown. The default timeout value is the value of the option OPT_WINDOW_TIMEOUT.

Example

Desktop.WaitForDisappearance(1.0)