rotate
Change device orientation between Portrait, LandscapeLeft, LandscapeRight, or PortraitUpsideDown to test app layout in different screen orientations.
Instructions
Set the device orientation to Portrait, LandscapeLeft, LandscapeRight, or PortraitUpsideDown.
Use to test layout in a different orientation. Re-run describe afterwards — frame coordinates change with the orientation.
Returns { orientation }. Fails if the target device is not booted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | Yes | Target device id from `list-devices` (iOS UDID or Android serial). | |
| orientation | Yes | Target orientation |