Full page screenshot not rendering correctly
See original GitHub issueHere is my code
const pw = require('playwright');
(async () => {
const browser = await pw.chromium.launch(); // or 'chromium', 'firefox'
const context = await browser.newContext();
const page = await context.newPage();
await page.goto('https://www.waze.com/');
await page.screenshot({
path: 'example.png',
fullPage : true });
await browser.close();
})();
If you see the content at the bottom of the page is not properly captured in screenshot. Any help will be appreciated.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Full Page Screenshot function not working. - Apple Community
I took a screenshot from safari to take a full page but it does not give me the option to a full page....
Read more >Full-Page Screenshots on Safari Not Working? Here's How to ...
Follow these three simple tips to fix full-page screenshots if they stopped working in Safari on your iPhone or iPad.
Read more >screenshot enabled … but does not 'capture' full page.
There seems to be a size limit for full page screenshots, so a very very large page a full page screenshot won't work...
Read more >Why does puppeteer not render this page correctly when it ...
I'm using Node.JS v12.13.0 on a Debian 9 x64 system. The script successfully takes screenshots of other web pages, so I'm not sure...
Read more >How to take a full-page screenshot in Google Chrome -- 4 ways
A full-screen capture on Google Chrome is easier said than done. Follow this how-to for flawless screenshots, every time.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Interesting example, thanks for sharing. On observing the page, I noticed that the bottom parts of the page load after scrolling. To replicate this behavior through Playwright, I’ve added a method
scrollFullPage
to your code snippet, executed right before taking a screenshot.overflow-y: initial !important; the default overflow will affect the fullscreen args