Device shake command
On iOS: Triggers a virtual shake gesture on the device to activate features or modes that rely on physical shaking, such as entering development or test mode. You can also use it to trigger the React Native development menu in debuggable apps.
On Android: Only triggers the React Native development menu in debuggable apps. This feature requires enablement. To request this feature for your cloud, contact Perfecto Support.
Limitations
Shake gesture simulation is supported on Android 11 and later. On earlier versions, availability may vary depending on the device manufacturer and system configuration. On some devices, especially those running Android 9 or missing system components, the shake gesture may not function as expected.
Parameter
| Name | Type | Possible values | Description |
|---|---|---|---|
|
Device ID* |
Device |
|
The device for this command. By default, this is the device under test (DUT). |
|
Comment |
String |
Adds a comment to the script |
|
|
On-fail Result* |
Condition |
Ignore | Break | Continue | Abort | Catch |
The behavior when the command fails. |
* Mandatory