browserstack command to change orientation to landscape mode in iOS and andriod devices
I need to run my testcafe tests in landscape mode in some iOS and android devices. I have used the below browser alias for these devices: //For iOS v10 and iOS v13 ['browserstack:iPhone 7','browserstack:iPhone 11'] //For andriod v9.0 and v10.0 ['browserstack:Google Pixel 3 XL','browserstack:Google Pixel 4 XL'] .
By default the orientation is in portrait mode. What command or additional parameters I need to pass to run my testcafe tests in landscape mode?
The BrowserStack provider for TestCafe can use the BrowserStack JS Test API and Automate API.
The JS test API is a BrowserStack-specific REST API, and its documentation doesn't mention that different screen orientations are supported by the API. The Automate API is a WebDriver-based API. Theoretically, it should support the setOrientation method, but some StackOverflow answers indicate that this method is not supported by the BrowserStack API implementation.
This means that we are not sure if it is possible to change the screen orientation for BrowserStack mobile devices. We we will need some time to research this.
@wentwrong Do we have any update on this
Once we get any results, we will share them here.
This issue has been automatically marked as stale because it has not had any activity for a long period. It will be closed and archived if no further activity occurs. However, we may return to this issue in the future. If it still affects you or you have any additional information regarding it, please leave a comment and we will keep it open.
We're closing this issue after a prolonged period of inactivity. If it still affects you, please add a comment to this issue with up-to-date information. Thank you.