pressButton
Simulate hardware button presses on Android or iOS devices for automated testing. Specify the button (e.g., home, power, volume) and platform to trigger precise actions.
Instructions
Press a hardware button on the device
Input Schema
Name | Required | Description | Default |
---|---|---|---|
button | Yes | The button to press | |
platform | Yes | Platform of the device |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"button": {
"description": "The button to press",
"enum": [
"home",
"back",
"menu",
"power",
"volume_up",
"volume_down",
"recent"
],
"type": "string"
},
"platform": {
"description": "Platform of the device",
"enum": [
"android",
"ios"
],
"type": "string"
}
},
"required": [
"button",
"platform"
],
"type": "object"
}