Search code examples
iosappiumlandscapeorientation-changesappium-ios

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.


Solution

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

    • 'orientation': 'LANDSCAPE'

    also with this option it is working :

    • 'deviceorientation': 'LANDSCAPE'