Skip to main content

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 parametersInput parameter typeDescription
Mobile Device ObjectPhoneConnected mobile object
Image NamestrName assigned when the image was captured
ConditionenumExists, Does Not Exist; run the child commands when the condition is met
Match ModeenumAuto, Color, Grayscale
Image Wait DurationnumberMaximum time to wait for the image to appear or disappear, in seconds

Command Output Parameters

None

Type definition reference

Condition description

ConditionDescription
ExistsRun the child commands if the image is detected at any point during the waiting period.
Does Not ExistRun the child commands if the image disappears or remains absent throughout the waiting period.

Match Mode description

Match ModeDescription
AutoSelects an appropriate matching method automatically; recommended as the default.
ColorMatch colors and shapes together, suitable for images with fixed colors and stable styles
GrayscaleIgnore 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

FAQ

See Mobile Automation FAQ