TestProject Forum

Android Rotate Screen Orientation

Hi Team,

How do you add a step to rotate/change orientation in Android device before recording new steps? I learned there is an iOS Add On for this but there is no Action to rotate for Android device. I know there is an option to rotate screen from the Emulator Mirror but this does not record a step. The goal is to run tests in landscape mode in Android but there seems to be no Action to do this. Thanks much!

Same the set orientation step in IOS seems to be missing for Android, appium supports both. Can we please add this ASAP. Seems like something maybe someone missed, as android includes get orientation just missing set.

Any workarounds with sending android keys?

@newtester The App Under Test has to support rotation by default,
You can use adb to then rotate the screen
Found below works on android 11 on physical and emulators