Skip to main content
No Result Found
Get your setup working faster. Join our Discord for optimisation tips from elite testers. Join our DiscordJoin our Discord

Rotate the device

Rotate the device to portrait or landscape during a test in App Low Code Automation to test landscape layouts and rotation behavior.

Mobile apps often behave differently when the device rotates. Layouts reflow, screen state resets, and media players switch modes. The Rotate device to command sets the device to portrait or landscape at any point in your test, so you can validate landscape layouts and catch rotation-related bugs.

The command works on both Android and iOS, on phones and tablets, while you author a test and when the test runs in a build.

Add a rotate step

  1. In the test editor, start typing Rotate device to, or open the command suggestions and select Rotate device to from the device and system interactions group. Command suggestions in the test editor with the Rotate device to command selected
  2. In the orientation dropdown, select one of the following options:
    • Portrait: Rotates the device to portrait.
    • Landscape (clockwise): Rotates the device clockwise to landscape.
    • Landscape (anti-clockwise): Rotates the device anti-clockwise to landscape. Orientation dropdown for the Rotate device to step with the Portrait, Landscape (clockwise), and Landscape (anti-clockwise) options
  3. Press Enter to run the step.

The device rotates to the orientation you selected, and the device view shows the rotated device immediately. In landscape, the device view scales the device down to fit the available space.

Every test session starts in portrait, both while you author a test and when the test runs in a build. After a rotate step runs, the device stays in that orientation until the next rotate step or the next app reset.

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle