I use Appiumto automate a mobile application, and I need to change the screen orientation.
This works for me:
((Rotatable)driver).rotate(ScreenOrientation.LANDSCAPE);
((Rotatable)driver).rotate(ScreenOrientation.PORTRAIT);
But when I use:
((Rotatable)driver).rotate(ScreenOrientation.LANDSCAPE);
My screen only rotates to the right, but I need to rotate to the left Reverse Landscape.
source
share