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
ElementHandle screenshot doesn't work properly when the element is offscreen #6423
Comments
I'm experiencing something similar. Using |
@whoisjuan found a workaround? |
@mikelpr Yep. Unfortunately, you will have to downgrade a lot. This happened when 2.0.0 was released. Here is the feedback issue for that specific change: #5080 I asked yesterday if there was a workaround yet and it seems that they have been talking about it recently: https://bugs.chromium.org/p/chromium/issues/detail?id=1003629#c11 So give it a try with https://github.com/puppeteer/puppeteer/releases/tag/v1.20.0 and if that solves your problem, then it means that your issue is indeed related to this change. But I'm like 95% sure that this is your problem. |
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! |
Tell us about your environment:
What steps will reproduce the problem?
let's say we have a page where there are "card" divs
specifically, this happens on ftx.com/shareable-pnl, like this:
element 1
element 2, wrong
What is the expected result?
proper screenshots
What happens instead?
the screenshot for the first card will come out fine,
the second one comes incorrectly cropped from halfway to the bottom plus
The text was updated successfully, but these errors were encountered: