Get your setup working faster. Join our Discord for optimisation tips from elite testers.
Join our Discord
Change device screen orientation for Appium tests
Change the screen orientation of an Android or iOS device for Appium testing on BrowserStack App Automate. Test your apps on a real device cloud.
Your test case may require you to change the device orientation of the device. You can change the screen orientation of an Android or iOS device to set your application in portrait or landscape mode during the execution of the test.
If you are using BrowserStack SDK, you can set the following capability within the browserstack.yml file:
| Capability | Description | Values |
|---|---|---|
deviceOrientation |
Set the screen orientation of mobile device | portrait, landscape Default: portrait |
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
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!