press_button
Press hardware or navigation buttons (HOME, BACK, POWER, VOLUME) on an Android emulator to simulate key presses and control device actions.
Instructions
Press a hardware/navigation button (HOME, BACK, MENU, APP_SWITCH, POWER, VOLUME_UP, VOLUME_DOWN, ENTER, DEL, TAB, CAMERA, SEARCH)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| button | Yes | ||
| serial | No | Device serial (e.g. emulator-5554). Optional when exactly one device is connected. |