Synchronization and Configuring Timeouts

WaitForScreenshotStable

To get the best possible results the UFT Developer AI feature waits up to CommonOptions.OPT_WAIT_SCREENSHOT_STABLE (5 seconds), if a screenshot still changes. As soon as the screenshot is stable or the timeout expired, the screenshot is sent to the AI Engine for processing.

This applies to Replay, Recording and Try-runs through the Interactive Recording window .

Note: If there are constant visual animations on the application under test (AUT), specifying a lower timeout will improve replay performance.

FindOption

For replay, the UFT Developer AI feature additionally has a timeout for all findWithAI and findWithAIAnchor calls via the FindOptions mechanism. Default timeout through FindOptions is CommonOptions.OPT_WAIT_RESOLVE_OBJDEF (5 seconds). If the specified timeout is greater than 0, the AI feature will do at least a second find attempt, even if the first roundtrip of screenshot processing took longer than 5 seconds.