press_key
Send platform key events to Android and iOS devices. Use Android KEYCODE_* names or iOS keys like HOME, BACK, and ENTER.
Instructions
Send a platform key event. Android accepts KEYCODE_* names, with the KEYCODE_ prefix added automatically. iOS supports WDA-backed HOME, ENTER/RETURN, and BACK/ESCAPE.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| device | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |