ios_tap_element
Tap iOS app elements using accessibility labels or partial text matches to automate testing and interaction workflows.
Instructions
Tap an element by its accessibility label. Requires IDB (brew install idb-companion). TIP: Consider using ocr_screenshot first - it returns ready-to-use tap coordinates for all visible text and works without requiring accessibility labels.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Exact accessibility label to match (e.g., 'Home', 'Settings') | |
| labelContains | No | Partial label match, case-insensitive (e.g., 'Circular' matches 'Circulars, 3, 12 total') | |
| index | No | If multiple elements match, tap the nth one (0-indexed, default: 0) | |
| duration | No | Optional tap duration in seconds (for long press) | |
| udid | No | Optional simulator UDID. Uses booted simulator if not specified. |