adb_tap_element
Searches Android UI for an element by text, resource-id, or content-description, then taps its center. Reliable for dynamic layouts by combining search and tap in one operation.
Instructions
Find a UI element by text, resource-id, or content-description, then tap its center. Combines UI hierarchy search with input tap in one atomic operation. More reliable than coordinate-based taps for dynamic layouts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Match elements containing this text (case-insensitive) | |
| resourceId | No | Match elements with this resource-id (partial match) | |
| contentDesc | No | Match elements with this content-description (partial, case-insensitive) | |
| index | No | Which match to tap if multiple found (0 = first match, default) | |
| device | No | Device serial |