ui_tap
Tap UI elements on the iOS simulator by accessibility identifier, label, or x/y coordinates for automated testing.
Instructions
Tap a UI element on the simulator by accessibility id (most reliable), label, or x/y coordinates. At least one targeting method must be provided. Prefer accessibility id when available — use ui_snapshot to discover them.
Requires AXe CLI: brew tap cameroncooke/axe && brew install axe
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device UDID, name, or 'booted' | booted |
| id | No | Accessibility identifier to tap | |
| label | No | Accessibility label to tap | |
| x | No | X coordinate to tap | |
| y | No | Y coordinate to tap |