Skip to main content

Wait for desktop object

Wait until a captured control appears, or until it disappears, in a Windows application.

Command in the Desktop objects toolkit · id ooa.desktop_ui/wait_for_object · 4 inputs (1 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
Captured objectDictionaryYesThe captured object (from Pick object or OneAgentStudio's desktop capture): window, properties with match and use, path and index.
StateStringNoappearWait for the object to appear or to disappear.
Timeout (seconds)NumberNo30Maximum wait in seconds.
Fail on timeoutBooleanNotrueFail the step when the time runs out; false returns found = false instead.

Outputs​

OutputTypeWhat it is
foundBooleanTrue when the wait ended in the requested state; false after a timeout when fail_on_timeout is false.