tap_text
Search an Android screen for an element by visible text, content description, or resource ID and tap its center to avoid coordinate guessing.
Instructions
Find an element by its visible text, content description or resource id and tap its centre. This is the robust alternative to guessing coordinates. Runs a fresh screen dump unless the previous one is reused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nth | No | Which match to tap when several exist (0 = first). | |
| text | Yes | Label to look for. | |
| exact | No | ||
| device | No | Device serial from list_devices (omit when exactly one device is connected). |