Set screen orientation - operation

  • Android mobile

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


Change the app orientation on the screen

There are 4 available screen orientations to choose from:

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

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');