testcafe-browser-provider-browserstack icon indicating copy to clipboard operation
testcafe-browser-provider-browserstack copied to clipboard

browserstack command to change orientation to landscape mode in iOS and andriod devices

Open vasantverma-LM opened this issue 5 years ago • 3 comments

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?

vasantverma-LM avatar Jul 15 '20 09:07 vasantverma-LM

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 avatar Jul 16 '20 10:07 wentwrong

@wentwrong Do we have any update on this

vasantverma-LM avatar Aug 05 '20 12:08 vasantverma-LM

Once we get any results, we will share them here.

AlexSkorkin avatar Aug 06 '20 06:08 AlexSkorkin

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.

github-actions[bot] avatar Dec 10 '22 02:12 github-actions[bot]

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.

github-actions[bot] avatar Dec 21 '22 01:12 github-actions[bot]