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
Screenshot is different from what we see in browser #5169
Comments
I have a similar problem. I think you must add some time before taking the screenshot to let the images download. Your example works with my code, so maybe you give it a try:
The url I have trouble with is http://www.kupart.com/, and no matter how much time I add via |
The missing images are drawn by carousel from jquery. They are not inside an iframe, which would explain the phenomenon and could have been compensated for by using more code (see e.g. https://stackoverflow.com/questions/56335680/puppeteer-cannot-find-element-loaded-by-javascript). To investigate more comfortably, I switched to interactive mode:
using So I switched back to direct mode and again: success! So sad. No error, no chance to find out. Which jeopardises me to hit on another sample without getting to know. Ok, I might filter on filesize to get an alert. |
Thanks kklepper! I've tried adding more wait time before taking the screenshot and it didn't work either. I think your code works for https://microblink.com/news-events because you have set the viewport But using
|
As I don't have a problem with I made the test with
and changed The result is as expected: (this is a browser-shrinked version to show the whole image -- the magnifier symbol switches to original size.) In case you wonder: I changed my container to |
My two cents: check your Chrome version and see if it's correctly matched with the puppeteer's version here |
We're marking this issue as unconfirmed because it has not had recent activity and we weren't able to confirm it yet. It will be closed if no further activity occurs within the next 30 days. |
We are closing this issue. If the issue still persists in the latest version of Puppeteer, please reopen the issue and update the description. We will try our best to accomodate it! |
Steps to reproduce
Tell us about your environment:
What steps will reproduce the problem?
Please include code that reproduces the issue.
What is the expected result?
I should get the screenshot(image.png) as what I see in my browser
What happens instead?
But this was the output:
Same thing happened to https://chvrch.es/#shows as well, many elements were missing on the screenshot. I'm wondering what could be the problem and is there a way to fix this? Thank you in advance!
The text was updated successfully, but these errors were encountered: