News
Puppeteer 25.19 stops print and dark mode emulation from cancelling each other
Before Puppeteer 25.19.0, emulateMediaType and emulateMediaFeatures reset each other, losing print or dark mode. Our tests, the fix and a workaround.
What we learn running a screenshot service: how browsers render pages, why captures go wrong, and how to automate them well. Every article is checked against its sources and our own test captures.
News
Before Puppeteer 25.19.0, emulateMediaType and emulateMediaFeatures reset each other, losing print or dark mode. Our tests, the fix and a workaround.

News
We captured eight live sitemaps in Chrome 156 and Chromium 158. Styled pages turn into raw XML, a red warning bar is already in captures, and two fixes work.

Research
We ran DevTools' full-size screenshot on six long pages: it stops at 16,384 pixels and misses content that appears on scroll. Here's why, and the fixes that worked.

Research
We ran 100 real-site captures six ways on a 2-CPU, 4 GB container and measured time, CPU, memory and failures, to show what self-hosting really asks of a server.

Research
We captured 20 real pages three times in Puppeteer and Playwright, in both headless modes. Speed was a wash; fonts, timeouts and redirects were not.

Guides
We built an A4 screenshot report with Puppeteer and measured it: which image format keeps the PDF small, and how to stop tall captures leaving blank pages.

Guides
We tested every way to set a headless browser's language and time zone, then captured mozilla.org in five locales. Which setting changes what, measured.

Guides
Find one archived capture per year with the CDX API, screenshot it without the toolbar, and catch the redirects and mixed dates that make old pages wrong.

Guides
We archived two live pages as PNG, PDF and WARC, replayed them offline and timestamped the hashes. What each format keeps, loses and can prove about a date.

Guides
We broke one page seven ways and diffed each build with Playwright and pixelmatch. Which tolerance settings miss real bugs, and how to remove flaky pixels instead.

Guides
How to capture a page in dark mode with Puppeteer and Playwright, what we measured on nine sites, and what to do when a site has no dark theme.

Guides
Sign in once, save the session and capture signed-in pages. We tested cookies, localStorage, sessionStorage, profile folders and expired sessions against a test app.

Guides
We captured a React app and a Vue app at each Puppeteer wait condition, on deep links and after in-app clicks: what each one caught, and a helper that waits properly.

Guides
Turn HTML or a URL into a PDF with Puppeteer's page.pdf(). We ran every option that changes the output and show what each one really does.

Guides
We captured single elements in Puppeteer and Playwright and found six ways it goes wrong, from fixed headers to cut-off shadows. Tested helpers for both included.

Guides
We captured a page that loads in stages at each Puppeteer wait condition: what each one caught, what it missed, and a tested helper that waits for the content.

Guides
Working Python code for viewport and full-page screenshots with Playwright and Selenium, timed on five real pages, plus the Selenium viewport trap we hit.

Guides
What each Playwright screenshot option does, run on Playwright 1.64.1: fullPage, clip, mask, style, animations, scale and format, with the traps we hit.

Guides
How fullPage works in Puppeteer, and the three failures we hit on 15 real sites: scroll-triggered content, fixed overlays and inner scroll containers, with fixes.

Research
We changed one emulation setting at a time in headless Chrome and recorded what the page and server saw: what each setting does, and the set a mobile capture needs.

Research
We captured ten real pages in headless Chrome as PNG, JPEG and WebP at several qualities and measured size and visual quality. Results, code and the settings to use.

Research
We loaded 20 popular European sites in headless Chrome, recorded each consent banner and tested three ways to get a clean screenshot. Code and results.

Research
Lazy-loaded images below the first screen are never requested in a plain full-page capture. We measured it on five sites and timed two fixes.

Research
Chrome returns a 0-byte WebP, with no error, for any screenshot taller than 16,383 device pixels. We measured each format's limit and tested two fixes.

Engineering
Headless Chrome in a slim Linux container draws CJK text and emoji as empty boxes. We tested five setups to find the font packages that fix it and what they cost.