If Mobile Image Exists
Command description
Check whether a specified image exists on the mobile screen and run the indented child commands when the selected condition is met.
Command Input Parameters
| input parameters | Input parameter type | Description |
|---|---|---|
| Mobile Device Object | Phone | Connected mobile object |
| Image Name | str | Name assigned when the image was captured |
| Condition | enum | Exists, Does Not Exist; run the child commands when the condition is met |
| Match Mode | enum | Auto, Color, Grayscale |
| Image Wait Duration | number | Maximum time to wait for the image to appear or disappear, in seconds |
Command Output Parameters
None
Type definition reference
Condition description
| Condition | Description |
|---|---|
| Exists | Run the child commands if the image is detected at any point during the waiting period. |
| Does Not Exist | Run the child commands if the image disappears or remains absent throughout the waiting period. |
Match Mode description
| Match Mode | Description |
|---|---|
| Auto | Selects an appropriate matching method automatically; recommended as the default. |
| Color | Match colors and shapes together, suitable for images with fixed colors and stable styles |
| Grayscale | Ignore color differences and compare only grayscale features. This is suitable for images with large color changes but stable contours. |
tip
Prefer element capture when the target can be identified as an element. Image matching is more sensitive to resolution, scaling, and UI themes.
tip
Enable Developer options on the mobile device, then connect it to the computer with a USB cable. See Connect Mobile Device
Runavelo 7.6.0 or later