zinserjan / wdio-visual-regression-service

Visual regression service for WebdriverIO.
MIT License
102 stars 39 forks source link

Different viewport-size, if change device orientation on mobile devices #30

Open Henne2806 opened 7 years ago

Henne2806 commented 7 years ago

Hi,

I have problems, if i take screenshots from a website on mobile devices in the browserstack cloud and change the orientation of the device.

I want to take two screenshots from the full website with checkDocument([]). After taking the first screenshot, i change the orientation of the device with the webdriver.io-method browser.setDeviceOrientation("landscape"). But if i change the device orientation, i have got a screenshot of the emulator-viewport instead of the browser-viewport

Without change to landscape orientation:

checkdocument2 checkdocument1

With change to landcape orientation after taking the first screenshot.

checkdocument-landscape-pause1 checkdocument-landscape-pause2

i am using browserstack for mobile testing. The test device is a Samsung Galaxy S5 and test browser is the Android Stock Browser.

zinserjan commented 7 years ago

Taking screenshots of Android devices especially with the android simulator is not supported. That's why the navigation bar is shown on your screenshots in portrait. But your real issue with the whole device screenshot is something that looks weird for me. I think that's an browserstack issue as a never saw this with saucelabs.

Btw supporting android simulators is not on my roadmap, as they are so slow and there is no support for chrome (default brwoser). Taking screenshots of real android devices with chrome already works, except an issue with rotating devices..