Click Mobile Image
Command description
Locate and click an image on the mobile screen.
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 |
| Click Method | enum | Tap, Long Press |
| Click Position | enum | Center, Random |
| Match Mode | enum | Auto, Color, Grayscale |
| Image Wait Duration | number | Maximum time to wait for the image to appear, in seconds; an error is reported when the timeout expires |
Command Output Parameters
None
Type definition reference
Matching pattern description
| match pattern | Description |
|---|---|
| Auto | Selects an appropriate matching method automatically; recommended as the default. |
| Color | Match by color and shape, suitable for icons or buttons with fixed colors and stable styles |
| Grayscale | Ignore color differences and compare only grayscale features. This is suitable for images with changing colors but stable outlines, such as logos. |
tip
Prefer captured mobile elements when available. Image matching is more sensitive to resolution, scaling, interface theme, and screenshot quality, so it is generally less stable than element-based positioning.
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