AnyWin class.
Waits until the child object specified by the locator parameter no longer exists or the timeout value is reached.
This method is supported only in scripts that use the Open Agent and dynamic object recognition.
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. |
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.
Desktop.WaitForChildDisappearance(“.//Dialog[@caption=’Information’]”, 1.0)