-
Notifications
You must be signed in to change notification settings - Fork 35
checkFullPageScreen method is not calculate correctly the scroll height #22
Comments
Thanks for filling the issue, it's related to this one Will come up with a fix asap |
Ive release version |
Thanks for your prompt response, unfortunately I came across the same issue after updating the version. |
Thanks for you quick response, can you check 2 things for me
Tnx |
I hope it could be helpful! |
You are right, I see the problem. The problem is in the new There were issues on different pages (depending on how the page was build) that the scrollheight was not determined correctly. My question to you is what the reason is use the fullpage screenshot method here? |
I have a similar issue with a modal dialog. I think the underlying issue is that the scrolling and the calculations are done on the For instance, when using bootstrap, e.g. http://embed.plnkr.co/Ds4U0Nbmth8gj6RYF9iV/, Maybe a good solution would to make the scrolling element configurable, e.g. by providing a query to be valudated with querySelector? |
Hi @tomyam1 It's always hard for a module to detect how the page works and what element should be the element that should be scrolled. Each page is different. What would your proposal be? |
I think a good initial solution would be to let the user define the scrolling element using a If given, it will be used instead of This won't be a solution of for all the possible use cases, but it does solve the modal dialog case at hand which is very common. (I'm afraid I cannot afford the time to work on a PR for this at the moment) |
@wswebcreation An alternative solution would be to use puppeteer instance and use page.screenshot({...}) |
Environment:
Config of the automation framework + plugin
here a basic example of how my conf.js looks like:
Describe the bug
Using the checkFullPageScreen method with a dialog which blocks the browser's scroll, I am getting a weird behavior as the way of calculating the scroll height is not working well.
To Reproduce
I created this simple example: https://angular-5sbdat.stackblitz.io/
and this is basic my test:
Using the version 0.4.8 I am getting this result (the desired one):
However using the version 0.5.0:
As you can see, using the version 0.5.0 checkFullPageScreen method is scrolling down but it does not make sense because the scroll is blocked by the dialog.
The text was updated successfully, but these errors were encountered: