WaitForChildDisappearance Method

Class

AnyWin class.

Action

Waits until the child object specified by the locator parameter 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

WaitForChildDisappearance (locator, [timeout])
Variable Description
locator The XPath locator. Defines which object to find. STRING.
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.WaitForChildDisappearance(“.//Dialog[@caption=’Information’]”, 1.0)