appium_orientation
Get current mobile device orientation or set it to LANDSCAPE/PORTRAIT. Use get to read, set to change orientation during app tests.
Instructions
Get or set the device/screen orientation. Supports action=get and action=set (LANDSCAPE or PORTRAIT).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Use get to read current orientation, set to change orientation. | |
| sessionId | No | Session ID to target. If omitted, uses the active session. | |
| orientation | No | Required when action is set. |