ui_type
Inputs text into the focused field of an iOS Simulator, supporting key typing or paste for non-ASCII and non-US keyboard layouts.
Instructions
Input text into the iOS Simulator
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to input | |
| udid | No | Udid of target, can also be set with the IDB_UDID env var | |
| method | No | "type" (default): presses keys as on a US keyboard; printable ASCII only. "paste": use when the keyboard layout is not US (e.g. AZERTY, where "type" types wrong characters) or the text is non-ASCII; pastes into the focused field (tap it first), ~2-11 s | type |
| replace | No | Paste only: clear the focused field first, e.g. after "type" produced wrong characters |