【发布时间】:2016-09-07 02:48:46
【问题描述】:
在使用 appium 测试使用 Angular JS 编码的移动应用程序时,我们如何将模拟器方向更改为横向模式?
我在config.js 文件中添加了:'deviceorientation': 'landscape',。
但是我运行它时它并没有改变。
【问题讨论】:
-
你试过这个吗:((AppiumDriver) driver).rotate(ScreenOrientation.LANDSCAPE);
-
能力只是'方向',所以使用orientation:'LANDSCAPE'
-
@4M01:你说得对,我的问题是因为我没有使用大写;)
-
@ShekharSwami :感谢您的尝试,但我在量角器配置中使用它我没有使用`AppiumDriver驱动程序`
-
@Emna 很高兴它帮助了你。 :)
标签: ios appium landscape orientation-changes appium-ios