Press Button
mobile_press_buttonPress a supported hardware or navigation button on an iOS or Android device to trigger HOME, BACK, volume, power, or DPAD actions during app automation.
Instructions
Press a button on device
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| button | Yes | The button to press, in upper case. Supported buttons: Android: HOME, BACK, VOLUME_UP, VOLUME_DOWN, ENTER, BACKSPACE, APP_SWITCH, POWER, DPAD_CENTER, DPAD_UP, DPAD_DOWN, DPAD_LEFT, DPAD_RIGHT iOS: HOME, VOLUME_UP, VOLUME_DOWN, ENTER, LOCK BACKSPACE deletes the character before the cursor, APP_SWITCH opens the recent apps, POWER turns the screen on or off, LOCK locks the screen, and the DPAD buttons move focus on Android TV. | |
| device | Yes | The device identifier to use. Use mobile_list_available_devices to find which devices are available to you. |