Use a browser-automation library and enable its full-page option. In Playwright, the essential call is await page.screenshot({ path: 'fullpage.png', fullPage: true }); in Puppeteer, use the same fullPage: true option. Both capture the page’s scrollable content rather than only the visible viewport. Set the viewport before navigation, wait for dynamic content, and inspect the output when pages load material on scroll.
What “full-page” means
A normal screenshot records the current browser viewport. A full-page screenshot renders the entire scrollable document as one image, including content below the fold. It is not a photograph of a physically tall monitor, and it does not by itself guarantee that every asynchronous component or lazy image has finished loading.
The examples below use Node.js. Install one library in your project, run the browser it supports, and write the image to disk or keep the returned bytes in memory for further processing.
Playwright: the recommended implementation
Install and run
npm install playwright
Playwright can download its supported browsers with:
#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
npx playwright install
const { chromium } = require('playwright');
(async () => {
const browser = await chromium.launch();
const page = await browser.newPage({
viewport: { width: 1280, height: 800 }
});
await page.goto('https://example.com', {
waitUntil: 'networkidle'
});
await page.screenshot({
path: 'fullpage.png',
fullPage: true
});
await browser.close();
})();
fullPage: true tells Playwright to capture the full scrollable page. The path determines where the file is saved; change the extension or add type: 'jpeg' or type: 'webp' when you need another format supported by your installed version.
Wait for content that appears later
“Network idle” is only one readiness signal. For a page that renders a dashboard after an API call, wait for the actual component:
await page.goto('https://example.com/dashboard');
await page.locator('[data-testid="report"]').waitFor();
await page.screenshot({ path: 'report.png', fullPage: true });
For lazy-loaded pages, scroll through the document before capturing so scroll-triggered requests run:
await page.goto('https://example.com/catalog');
await page.evaluate(async () => {
await new Promise(resolve => {
const step = 500;
const timer = setInterval(() => {
window.scrollBy(0, step);
if (window.innerHeight + window.scrollY >= document.body.scrollHeight) {
clearInterval(timer);
resolve();
}
}, 100);
});
});
await page.waitForTimeout(500);
await page.screenshot({ path: 'catalog.png', fullPage: true });
Use a site-specific selector or a measured delay instead of assuming that one universal wait handles every application. Check the resulting image for missing sections.
Capture into a buffer
const image = await page.screenshot({ fullPage: true });
// image is a Buffer: send it to storage, compare pixels, or transform it.
require('fs').writeFileSync('fullpage.png', image);
A buffer is useful when the image should be uploaded directly or compared without creating an intermediate file.
Controlling layout, scale, and output
Viewport and responsive breakpoints
Define width and height before navigation. Responsive sites choose their layout from the viewport available during page load, so setting it afterward can produce a different design. A fixed viewport also makes repeated captures comparable:
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
const page = await browser.newPage({
viewport: { width: 1440, height: 900 },
deviceScaleFactor: 1
});
Choose the width that represents the reader or test target. A narrow width may activate a mobile menu; a wide width may expose a desktop navigation bar.
CSS pixels versus device pixels
Playwright’s screenshot scale option accepts 'css' or 'device'. CSS scale produces one image pixel per CSS pixel and generally keeps files smaller. Device scale preserves the emulated device’s pixel density and can produce a larger, higher-density image. Select one consistently when doing visual comparisons.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
await page.screenshot({
path: 'css-scale.png',
fullPage: true,
scale: 'css'
});
Masking, styling, and formats
For deterministic review images, hide volatile elements with CSS before capture:
await page.addStyleTag({
content: '.live-clock, . rotating-ad { visibility: hidden !important; }'
});
await page.screenshot({
path: 'stable.png',
fullPage: true,
type: 'png'
});
Replace the selector with valid selectors from your page. Playwright also supports screenshot options for masking, temporary styles, quality (for lossy formats), and timeouts; consult its current Page API for the exact option names supported by your installed release.
Puppeteer alternative
Install and capture
npm install puppeteer
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.setViewport({ width: 1280, height: 800 });
await page.goto('https://example.com', { waitUntil: 'networkidle0' });
await page.screenshot({
path: 'fullpage.png',
fullPage: true
});
await browser.close();
})();
Puppeteer documents fullPage as a Boolean that defaults to false; explicitly setting it to true is therefore important. Its screenshot options also include path, image type, JPEG quality, clipping, and background-related controls.
Viewport emulation
Puppeteer’s viewport settings can include width, height, device scale factor, mobile behavior, touch support, and orientation. Set them before goto when the responsive layout matters:
Recommended Free Tools
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
await page.setViewport({
width: 390,
height: 844,
deviceScaleFactor: 2,
isMobile: true,
hasTouch: true
});
As with Playwright, wait for the selector that proves your application is ready and trigger scroll-based loading before taking the final image.
Choosing between Playwright and Puppeteer
| Need | Choice | Reason |
|---|---|---|
| Existing Playwright tests or multi-browser automation | Playwright | Reuse the same page, locator, waiting, and browser setup. |
| Existing Puppeteer code | Puppeteer | Its page.screenshot API directly exposes full-page capture and familiar Chromium controls. |
| Pixel comparisons or uploads | Either | Both can save a path; Playwright explicitly supports returning image data for buffer workflows. |
| Reproducible responsive images | Either | Set viewport and scale before navigation and keep those values fixed. |
The libraries expose similar capture concepts. Your project’s existing automation stack is usually the deciding factor.
Common failures and fixes
The image stops at the viewport
Cause: fullPage was omitted or set to false. Fix: pass fullPage: true in the screenshot call.
Sections or images are missing
Cause: the page inserts content after navigation or only loads it when scrolled. Fix: wait for a target selector, scroll through the document, allow its requests to finish, and capture again.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Scan for outdated or missing drivers - takes under a minute3Repair Windows errors before they cause bigger problemsThe mobile or desktop layout is wrong
Cause: the viewport was not set before navigation, or the chosen width crossed a responsive breakpoint. Fix: create the page with the intended viewport (or call Puppeteer’s setViewport) before goto.
Output files are unexpectedly huge
Cause: a very tall document combined with device-pixel scaling or a lossless format. Fix: use scale: 'css' in Playwright, choose JPEG/WebP when appropriate, or capture a specific element rather than the entire document.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
The process hangs or the browser will not start
Cause: a browser binary is missing, a sandbox restriction applies in the runtime, or a navigation never reaches the selected wait condition. Fix: install the library’s browser binaries, use the launch settings required by your deployment environment, and replace an overly strict network-idle wait with a concrete readiness selector plus a bounded timeout.
Sticky headers appear repeatedly or obscure content
Cause: fixed-position elements remain visible while the full document is composed. Fix: temporarily hide or restyle those selectors with a stylesheet, or capture the relevant content element instead of the whole page.
Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Scan for outdated or missing drivers - takes under a minuteDriver Scan →Operational guidance for reliable captures
- Pin library and browser versions in your project so rendering changes are intentional.
- Use a dedicated output name per URL, viewport, and revision to avoid overwriting evidence.
- Close the browser in a
finallyblock in production jobs so failures do not leak processes. - Record the URL, viewport, scale, timestamp, and readiness condition alongside the image.
- Inspect unusually tall pages for blank sections, repeated fixed elements, and content that appears only after interaction.
- For authenticated pages, establish the session with the library’s context or cookies before navigation and avoid placing secrets in screenshot filenames or logs.
Or skip the browser setup
ScreenshotNeo is a website screenshot API and MCP server. A single GET request returns PNG, JPEG, WebP, or PDF output, while its capture pipeline accepts cookie and consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets before the shot. Those cleanup steps can each be turned off.
Only clean shots are billed. Bot checks and CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and every response identifies the result with X-Page-Verdict and X-Billed headers. Its MCP server exposes take_screenshot, get_page_info, and capture_pdf to Claude, Cursor, and other MCP clients.
The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 shots. Every feature is included on every plan.
cURL
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
Python
import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
r.raise_for_status()
open("shot.webp", "wb").write(r.content)
Node.js
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
if (!res.ok) throw new Error(`HTTP ${res.status}`);
require('fs').writeFileSync('shot.webp', Buffer.from(await res.arrayBuffer()));
See the ScreenshotNeo documentation for the complete parameter list. You can request full-page capture, a CSS-selected element, dark mode, device presets or custom viewports, retina scale, lazy-image loading, PDF paper and page-range settings, custom CSS and JavaScript, clicks, selector or network-idle waits, ad and tracker blocking, headers, cookies, user agents, authorization, timezone, geolocation, transparent backgrounds, resizing, configurable-TTL caching, signed image links, asynchronous webhooks, bulk capture of up to 100 URLs per call, usage data, and the OpenAPI specification. Parameter names used by other screenshot APIs also work, easing migration.
Free tools Windows power users keep installed
One-click scans. No signup required.
Create a free ScreenshotNeo account to get 1,000 screenshots each month with no card.
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
FAQ
Does full-page capture include content hidden behind a “load more” button?
No. Automation captures what the document has rendered. Click the control and wait for its resulting content before calling the screenshot method.
Can I capture only one element?
Yes. In browser automation, use the library’s element screenshot API; this avoids producing a very tall document when only a component is needed. ScreenshotNeo also accepts a CSS selector for element capture.
Why do two captures of the same URL differ?
Responsive breakpoints, animations, rotating ads, timestamps, personalized data, and asynchronous requests can all change pixels. Fix the viewport and readiness condition, disable or hide volatile elements, and compare like-for-like runs.
The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Frequently Asked Questions
Can a full-page screenshot be returned without writing a file?
Yes. Playwright returns a Buffer when no path is supplied, and Puppeteer can likewise return screenshot data for in-memory processing.
Is a PDF the same as a full-page PNG?
No. A PNG or JPEG is one image representing the scrollable document; a PDF applies paper dimensions, margins, orientation, and pagination.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

