Emna Emna - 6 months ago 61
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',
in
config.js
file.
But it didn't change when i run it.

Answer

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

  • 'orientation': 'LANDSCAPE'

also with this option it is working :

  • 'deviceorientation': 'LANDSCAPE'