使用appium时,如何将设备方向更改为横向模式? [英] While using appium how can we change device orientation to landscape mode?
本文介绍了使用appium时,如何将设备方向更改为横向模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在使用appium与量角器测试用Angular JS编码的移动应用程序时,我们如何将模拟器的方向更改为横向模式?
我在config.js
文件中添加了'deviceorientation': 'landscape',
.
但是当我运行它时并没有改变.
While using appium to test mobile application coded in Angular JS with protractor how can we change simulator orientation to landscape mode?
I have added : 'deviceorientation': 'landscape',
in config.js
file.
But it didn't change when i run it.
推荐答案
我在配置文件中以大写形式解决了该问题:
I solve it with uppercase in capabilities in the config file :
-
'orientation': 'LANDSCAPE'
也可以使用此选项:
-
'deviceorientation': 'LANDSCAPE'
这篇关于使用appium时,如何将设备方向更改为横向模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文