Set screen orientation - operation

  • Android - mobile devices
  • Apple iPhone / iPad (iOS)

This operation sets the orientation of the app on the device screen to one of the following.


Change the app orientation on the screen

Set the orientation of the app on the device screen to one of the below mentioned values based on the operating system.

Android OS supported values

  • Portrait
  • Portrait - reversed
  • Landscape
  • Landscape - reversed

iOS supported values

  • Portrait
  • Portrait upside down (does not work when Face ID is used for authentication)
  • Landscape left
  • Landscape right

To perform this operation in the Suitest Test editor use the Set screen orientation line:

Set orientation example

To perform this operation in the Suitest JavaScript API use the setScreenOrientation command:

await suitest.setScreenOrientation('portraitReversed');