Skip to main content

Wait for Image

Command description

Wait for the specified image to appear or disappear on the Entire Screen, in the Active Window, or in a Specified Window. This command compares images through Python OpenCV and is sensitive to image and screen size. If the screen resolution differs between the computer where the workflow is built and the computer where it runs, the image may not match.

Command Input Parameters

input parametersInput parameter typeDescription
Search ScopeenumEntire Screen, Active Window, Specified Window
Window ObjectWindowInstanceRequired when Search Scope is Specified Window
Image NamestrCaptured image name
ConditionenumAppears, Disappears
Match ModeenumAuto, Color, Grayscale
Wait DurationnumberMaximum time to wait, in seconds

Command Output Parameters

Output parametersOutput parameter typeDescription
Wait Resultbool

Waiting for result description

Current statusConditionsreturn value
Image existsAppearsReturns True immediately
Image existsDisappearsReturns True when the image disappears, or False if it still exists when the timeout expires
Image does not existDisappearsReturns True immediately
Image does not existAppearsReturns True when the image appears, or False if it is still absent when the timeout expires

Type definition reference

tip

Prefer element capture when the target can be identified as an element. Image matching is sensitive to display conditions and is not guaranteed to be exact.

Example