zinserjan / wdio-screenshot

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

saveViewportScreenshot starts form top of page #90

Open iksilon opened 6 years ago

iksilon commented 6 years ago

Hi,

saveViewportScreenshot takes scroll offset as starting point and screen dimensions as ending point. This creates images which have height of screenHeight-scrollOffset, which in turn creates problems when we scroll past the height of one screen and try to take a shot.

Is this indended?