如何将屏幕方向(以编程方式)更改为"反向横向"使用appium(硒驱动程序)

时间:2015-11-23 10:24:10

标签: android selenium rotation

我正在使用Appium自动化移动应用,我需要更改屏幕方向。

这对我有用:

((Rotatable)driver).rotate(ScreenOrientation.LANDSCAPE);
((Rotatable)driver).rotate(ScreenOrientation.PORTRAIT);

但是,当我使用:

((Rotatable)driver).rotate(ScreenOrientation.LANDSCAPE);

我的屏幕只向右旋转,但我需要旋转到左Reverse Landscape

0 个答案:

没有答案