zinserjan / wdio-screenshot

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

Unexpected heigh/width - Solved #95

Open kimek opened 5 years ago

kimek commented 5 years ago

If anybody had issue with screenshot higher/wider then view port which are caused by javascript srollHeight (which takes scrollHeight even if it's not visible ) use this npm run role "fix-wdio-screenshot": "sed -i -e 's/scrollHeight: body.scrollHeight/scrollHeight: body.clientHeight/g' node_modules/wdio-screenshot/lib/scripts/getScreenDimensions.js", I will try to make PR however I see that this repo is death. Anybody have 'up to date' repo here ?