rotate
Set a simulator or emulator to Portrait, LandscapeLeft, LandscapeRight, or PortraitUpsideDown to test how layouts adapt. Use with UI inspection, since frame coordinates change with orientation.
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 |