ui_type
Types characters one by one with real key events, making applications react to autocomplete, search-as-you-type, and input masks that require per-keystroke updates.
Instructions
Type into a field one character at a time, with real key events for each. Slower than ui_fill and necessary exactly when the field reacts per keystroke — search-as-you-type, autocomplete, input masks, and fields that reformat while you type. If ui_fill left the field looking right but the application unaware, use this.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nth | No | Which match to use when several qualify, 0-based. | |
| role | No | Narrow the matches to this ARIA role. | |
| text | No | Visible text on the control. Matches the innermost element that carries it, and follows a <label> to its input. | |
| exact | No | Require the whole text to match rather than a substring. | |
| frame | No | 'main' (default) or a substring of a frame's origin/name. Single-page apps often render the screen you want in a child frame. | main |
| submit | No | Press Enter afterwards. | |
| testid | No | Value of a test attribute (data-testid and friends — see the testAttributes setting). | |
| delay_ms | No | Pause between keystrokes. Raise it if the field drops characters. | |
| selector | No | CSS selector. Descends into open shadow roots. | |
| timeout_ms | No | How long to wait for the element to become actionable before giving up. | |
| clear_first | No | Select all and delete before typing. | |
| text_to_type | Yes | Characters to type. |