Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected heigh/width - Solved #95

Open
kimek opened this issue Jun 3, 2019 · 0 comments
Open

Unexpected heigh/width - Solved #95

kimek opened this issue Jun 3, 2019 · 0 comments

Comments

@kimek
Copy link

kimek commented Jun 3, 2019

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant