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.
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- Get the NSRange for the visible text after scroll
相关文章
- 现在使用swift开发ios应用好还是swift?
- appiumUI自动化send_keys()或者set_value()输入字符不识别,提示Did y
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
Use this method for landscape mode:
I solve it with uppercase in capabilities in the config file :
'orientation': 'LANDSCAPE'
also with this option it is working :
'deviceorientation': 'LANDSCAPE'
Using server capabilities :
and also as suggested by @Shekhar Swami using the code you can perform an action like :
In my case it switches the mode but device remains the same (vertically oriented). To fix that - go to Simulator window - Device - Rotate