zinserjan / wdio-screenshot

A WebdriverIO plugin. Additional commands for taking screenshots with WebdriverIO.
MIT License
109 stars 43 forks source link

Handle iOS auto scale to fit website #65

Closed zinserjan closed 7 years ago

zinserjan commented 7 years ago

iOS scales the page when website's width is bigger than the screen width. This happens for example for webpages like the desktop version of github.

https://github.com/zinserjan/wdio-screenshot

This PR adds support for this kind of scaling and creates screenshots like the folllowing:

github-ipad-ios-10-landscape

Unfortunately there seems to be bug in iOS that affects the scaling while we scroll and capture screenshots, so that we get the following screenshot. There's nothing we can do about it.

github-ipad-ios-10-portrait