key_press
Simulate key presses on an iOS simulator using keycodes, enabling testing of keyboard interactions in app development. Supports common keys like Return, Backspace, Tab, and Space.
Instructions
Press a single key by keycode on the simulator. Common keycodes: 40=Return, 42=Backspace, 43=Tab, 44=Space, 58-67=F1-F10.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
duration | No | ||
keyCode | Yes | ||
simulatorUuid | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"duration": {
"minimum": 0,
"type": "number"
},
"keyCode": {
"maximum": 255,
"minimum": 0,
"type": "integer"
},
"simulatorUuid": {
"format": "uuid",
"type": "string"
}
},
"required": [
"simulatorUuid",
"keyCode"
],
"type": "object"
}