How to change the screen orientation (software) to "Reverse landscape" using appium (selenium driver)

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.

+4
source share

Source: https://habr.com/ru/post/1617035/


All Articles