Wait for an image to appear
Automation of applications based on static images might require that you first wait for images to appear before you take any other action on the screen. Use the Wait Image command to check when an image appears in the screen.
Before you begin
This procedure assumes that you applied the recommended settings to work with surface automation.
-
Product requirements
IBM RPA Studio license -
User requirements
- Permission to use IBM RPA Studio application
- Permission to create or manage a script
Procedure
This procedure uses the Screen Capture Tool to teach you how to wait an image to appear in the screen.
- In IBM RPA Studio, start the recorder.
- Press the
Print Screen
key on the keyboard. - With the mouse cursor, select the image area.
- Right-click the selected area and select Wait for image to appear.
Alternatively, you can drag the Wait Image command to your script from the toolbox, or use the Region Selector feature to snip images from the computer's screen.
The command window opens filled with the main input parameters based on the image you selected. The following sample image shows that parameters:
- Search on Screen: Enabled.
- Image: The anchor image's asset.
- Similarity Degree: 100% of similarity degree to reach the image in the screen.
- Timeout: Maximum waiting time to find the image on the screen or in a user interface control.
- Analysis Interval: Time interval between analyzes performed on the screen.
- Selector: Vision.