tap
Tap an element by text or at x/y coordinates on a connected Android device. Use text to avoid layout and resolution issues; if matches are ambiguous, coordinates provide a direct fallback.
Instructions
Tap the screen, either at a coordinate or on the element matching text.
Prefer text: it survives layout and resolution differences. Exact matches win
over partial ones; if several elements match, none is tapped and they are listed
so you can pick a coordinate instead.
Args:
x, y: device coordinates. Ignored when text is given.
text: text, content description or resource id of the element to tap.
serial: device serial when several are attached.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| text | No | ||
| serial | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |