在使用 appium 时,我们如何将设备方向更改为横向模式? [英] While using appium how can we change device orientation to landscape mode?

查看:46
本文介绍了在使用 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': '景观'

这篇关于在使用 appium 时,我们如何将设备方向更改为横向模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆