Emna Emna - 2 years ago 184
iOS Question

While using appium how can we change device orientation to landscape mode?

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',
But it didn't change when i run it.

Answer Source

I solve it with uppercase in capabilities in the config file :

  • 'orientation': 'LANDSCAPE'

also with this option it is working :

  • 'deviceorientation': 'LANDSCAPE'
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download