You can change the orientation of your mobile emulator/simulator on Sauce Labs to either landscape or portrait mode.
Sauce Automated Tests
The initial orientation of the emulator/simulator can be specified via the deviceOrientation
desired capability by using the values of portrait
or landscape
. By default, portrait
mode is used for mobile tests. Here's an example of setting this capability:
"deviceOrientation": “portrait”
"deviceOrientation": “landscape”
You can find more information about desired capabilities for Sauce automated tests in the Test Configuration Options topic in our wiki.
Sauce Manual Tests
Android Emulator - You can rotate the emulator via the control panel displayed on the right-hand side.
iOS Simulator - You can rotate the simulator under the Hardware menu with the Rotate Left or Rotate Right option.