tap
Locate a UI element by selector, activate its center, and wait for the screen to settle before returning an updated snapshot for verification.
Instructions
Find an element by selector and tap its center. Waits for the screen to settle, then returns a fresh snapshot — annotated if it never settled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Bare resource-id (Compose testTag), regex full-match | |
| text | No | Visible text or content-desc, regex full-match | |
| index | No | Pick the Nth match (0-based) | |
| optional | No | If true, a miss does not error | |
| device_id | No |