input_text
Type text into a mobile UI field, optionally focusing by selector, then wait for screen to settle and return a fresh snapshot. Ensures accurate text entry for tests.
Instructions
Type text into a field (optionally focus it first by selector). Uses ADBKeyboard for reliability. 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) | |
| value | Yes | Text to type | |
| optional | No | If true, a miss does not error | |
| device_id | No |