Waits until the object is visually stable and does not change its position, by comparing screenshots taken with the specified interval. An exception is thrown if the timeout is reached.
This method is supported only in scripts that use the Open Agent and dynamic object recognition.
WaitForScreenshotStable ([timeout, interval])
Variable | Description |
---|---|
timeout | Optional: The maximum wait time in seconds. NUMBER. |
interval | Optional: The interval between screenshots in seconds. The default value is 0,2 seconds. NUMBER |
The following example waits for a CSS transition to complete. The interval between screenshots is 0,1 seconds:
domElementWithCssTransition.WaitForScreenshotStable(5,0.1)