我正在使用Appium
自动化移动应用,我需要更改屏幕方向。
这对我有用:
((Rotatable)driver).rotate(ScreenOrientation.LANDSCAPE);
((Rotatable)driver).rotate(ScreenOrientation.PORTRAIT);
但是,当我使用:
((Rotatable)driver).rotate(ScreenOrientation.LANDSCAPE);
我的屏幕只向右旋转,但我需要旋转到左Reverse Landscape
。