rotate
Change a device's orientation to portrait or landscape to test layout adjustments. After changing orientation, frame coordinates update; use describe to view them.
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 |