Use Playwright’s fullPage: true option to capture the entire scrollable page rather than just the visible browser viewport. Save the result as an image for documentation, or use Playwright Test’s screenshot assertions when you need visual regression checks.
Choose the right capture method
- Playwright page API: Best for repeatable screenshots inside browser automation scripts. Set
fullPage: trueto capture the full scrollable page. Playwright’s Screenshots guide describes this as a screenshot as if the page were displayed on a very tall screen. - Playwright Test screenshot assertions: Use
toHaveScreenshot()to compare the rendered page with a stored expectation. The assertion waits for two consecutive screenshots to match before saving or comparing the final image. See Playwright’s visual comparison documentation. - Playwright CLI: Use the command-line screenshot interface for a quick capture without writing a test. Its options include full-page capture, output filename, PNG/JPEG/WebP formats, and a high-resolution mode that captures device pixels rather than CSS pixels. See the CLI reference.
- Chrome DevTools Protocol: Use its Page-domain screenshot command when building lower-level browser integrations or needing protocol-level control, including capture of a specified region. It is a protocol API, not a documented DevTools menu workflow. See the Page domain reference.
If you only need a component, capture that element instead of producing a very tall full-page image. Playwright’s page API supports element screenshots as well as page screenshots.
Capture a full page with Playwright
In a JavaScript Playwright script, navigate to the intended app state and call page.screenshot() with fullPage: true. The following complete example launches Chromium, opens a page, takes a full-page screenshot, and closes the browser:
const { chromium } = require('playwright');
(async () => {
const browser = await chromium.launch();
const page = await browser.newPage();
await page.goto('http://localhost:3000');
await page.screenshot({ path: 'full-page.png', fullPage: true });
await browser.close();
})();
Install Playwright in the project and install its browser before running the script. Save the file, for example as capture.js, then run node capture.js. The resulting full-page.png is written in the current working directory.
#1 Best Overall
- PORTABLE SCANNER FOR USE ON-THE-GO — The fastest and lightest mobile single-sheet-fed compact document scanner in its class¹
- QUICK DOCUMENT SCANNING ― This Epson ultra-fast scanner scans a single page as quickly as 5.5 seconds²; Windows and Mac compatible
- VERSATILE PAPER HANDLING ― Portable scanner scans documents up to 8.5 x 72 in; Also easily digitizes receipts and ID cards to make accounting, bookkeeping, and organizing simpler
- INTUITIVE, HIGH-SPEED SOFTWARE — Epson ScanSmart Software³ is a smart tool allowing you to easily scan, review, and save; Stay organized easily with the help of this Epson scanner
- EASY SETUP — USB-powered connect to your computer for quick and simple scanning; No batteries or external power supply required to operate portable document scanner; Standard Connectivity: USB 2.0
A normal page screenshot captures the current viewport; fullPage: true requests the full scrollable page. The screenshot API can also return image bytes rather than writing a file, allowing a script to pass the result to other processing. Consult the Page API reference for the current options and language bindings.
Make the captured page representative
Wait for the state your test or document needs
Navigate to the route and state that should appear in the artifact. If content loads after navigation, wait for an app-specific readiness condition before capture—for example, a known heading or results container becoming visible. A fixed delay may be appropriate for a known animation, but it is not a universal substitute for checking that the required content is ready.
Full-page capture does not itself guarantee that every app has finished rendering or that content loaded only after scrolling has appeared. Review the resulting image, especially on pages with lazy-loaded images, expanding sections, animations, or content that changes after interaction. There is no universal page-height limit established by the cited Playwright documentation.
Mask sensitive or unstable areas
When a screenshot could contain personal or changing data, Playwright’s screenshot API supports a mask option for selected locators. The masked regions are visibly covered in the saved image; masking is not a way to preserve the underlying pixels while hiding them from someone who receives the screenshot.
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallRank #2
- FAST SPEEDS - Scans color and black and white documents a blazing speed up to 16ppm (1). Color scanning won’t slow you down as the color scan speed is the same as the black and white scan speed.
- ULTRA COMPACT – At less than 1 foot in length and only about 1. 5lbs in weight you can fit this device virtually anywhere (a bag, a purse, even a pocket).
- READY WHENEVER YOU ARE – The DS-640 mobile scanner is powered via an included micro USB 3. 0 cable allowing you to use it even where there is no outlet available. Plug it into you PC or laptop and you are ready to scan.
- WORKS YOUR WAY – Use the Brother free iPrint&Scan desktop app for scanning to multiple “Scan-to” destinations like PC, Network, cloud services, Email and OCR. (2) Supports Windows, Mac and Linux and TWAIN/WIA for PC/ICA for Mac/SANE drivers. (3)
- OPTIMIZE IMAGES AND TEXT – Automatic color detection/adjustment, image rotation (PC only), bleed through prevention/background removal, text enhancement, color drop to enhance scans. Software suite includes document management and OCR software. (4)
Keep visual regression runs consistent
For comparisons, generate the baseline and subsequent captures under controlled rendering conditions. Playwright notes that screenshots can vary with host operating system, browser version, settings, hardware, power source, and headless mode. Pin and reuse the relevant environment where practical, and investigate environmental changes before treating every pixel difference as an app regression.
Use Playwright Test for visual regression
When the goal is to detect visual changes rather than merely save a reference image, use Playwright Test’s toHaveScreenshot() assertion. It waits for consecutive page screenshots to match, then compares or saves the resulting screenshot expectation. This helps avoid recording a transient frame, but it does not remove the need to control rendering conditions or decide which differences are meaningful.
For a full-page assertion, call the assertion with the full-page option supported by the screenshot assertion API, and use the same route, app state, browser configuration, and test data when creating and checking the expectation. See the visual comparisons guide for the assertion workflow and the Page API for screenshot options such as masking.
Capture from the command line or protocol
Playwright CLI
The Playwright CLI screenshot command supports a full-page flag and filename selection, along with PNG, JPEG, and WebP output. It also documents a high-resolution option that captures device pixels instead of CSS pixels. Check the CLI reference for the installed version’s command syntax and flags rather than assuming options from another Playwright interface are identical.
Recommended Free Tools
Rank #3
- FAST DOCUMENT SCANNING — Document scanner with feeder allows you to speed through stacks with a 50-sheet Auto Document Feeder (ADF); Efficient office scanner to help you scan more productively
- INTUITIVE, HIGH-SPEED SOFTWARE — Quickly scan with this desktop document scanner; Epson ScanSmart Software lets you easily preview scans, email files, upload to the cloud, and more; Plus, automatic file naming saves even more time
- SEAMLESS INTEGRATION — Easily incorporate your data into most document management software with the included TWAIN driver; Office document scanner integrates seamlessly with business workflows
- EASY SHARING — Duplex scanner allows you to scan straight to email or popular cloud storage2 services like Dropbox, Evernote, Google Drive, and OneDrive for simple storage and sharing
- SIMPLE FILE MANAGEMENT — Scanner allows the creation of searchable PDFs with Optical Character Recognition (OCR) and convert scans to editable Word or Excel files effortlessly; Designed for home and office document scanning
Chrome DevTools Protocol
The Chrome DevTools Protocol Page domain exposes a screenshot command for integrations that need browser-protocol control, including specifying a region. Use the protocol documentation for the command parameters. This is distinct from a step-by-step DevTools UI instruction.
Or skip the browser setup
ScreenshotNeo is a website screenshot API and MCP server for developers. Its API returns a screenshot or PDF from one GET request; cookie banners are accepted and removed before capture, and supported newsletter popups and chat widgets are removed as well. Bot checks, blank pages, timeouts, failed loads, and cache hits cost nothing, with response headers indicating the page verdict and billing status. AI agents can use its MCP tools to take screenshots, inspect page information, and capture PDFs.
For example, request a full-page capture with the full_page parameter:
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -d full_page=true -o shot.webp
See the ScreenshotNeo API documentation for authentication and available parameters. Its parameter names are compatible with those used by other screenshot APIs, which can simplify a switch from an existing integration.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Fix the driver behind crashes, sound loss and screen glitches3Repair Windows errors before they cause bigger problemsScreenshotNeo includes 1,000 screenshots a month free with no card; paid plans start at $5 for 3,000. Sign up for free ScreenshotNeo screenshots.
Rank #4
- Scanner type: Document
- Connectivity technology: USB
- With Auto Scan Mode, the scanner automatically detects what you're scanning
- Digitize documents and images
Troubleshooting full-page captures
The image contains only the visible viewport
Confirm the script calls page.screenshot({ path: 'full-page.png', fullPage: true }). Without fullPage: true, a page screenshot is limited to the current viewport.
Content is missing below the fold
Wait for the app’s relevant content to load before capture. If the app loads content in response to scrolling, make sure that behavior has occurred before taking the screenshot, then inspect the artifact. A full-page request does not establish that every app’s lazy-loading logic has run.
Images or text differ between runs
Check for changes in operating system, browser version, settings, hardware, power source, or headless mode. Also confirm that the app data and state are the same. These are known sources of rendering variation noted by Playwright’s visual comparison documentation.
The screenshot includes private or unpredictable content
Use the screenshot API’s mask option with locators for the regions to cover, or capture only the relevant element. Inspect the generated image to verify that the intended regions are covered before sharing it.
Best Value
- OUR MOST ADVANCED SCANSNAP. Large touchscreen, fast 45ppm double-sided scanning, 100-sheet document feeder, Wi-Fi and USB connectivity, automatic optimizations, and support for cloud services. Upgraded replacement for the discontinued iX1600
- CUSTOMIZABLE. SHARABLE. Select personalized profiles from the touchscreen. Send to PC, Mac, mobile devices, and clouds. QUICK MENU lets you quickly scan-drag-drop to your favorite computer apps
- STABLE WIRELESS OR USB CONNECTION. Built-in Wi-Fi 6 for the fastest and most secure scanning. Connect to smart devices or cloud services without a computer. USB-C connection also available
- PHOTO AND DOCUMENT ORGANIZATION MADE EFFORTLESS. Easily manage, edit, and use scanned data from documents, receipts, photos, and business cards. Automatically optimize, name, and sort files
- AVOIDS PAPER JAMS AND DAMAGE. Features a brake roller system to feed paper smoothly, a multi-feed sensor that detects pages stuck together, and skew detection to prevent paper damage and data loss
The output is too tall or hard to review
Capture the specific element that matters, or split documentation into focused captures. Full-page mode is intended to include the scrollable page; it does not make an exceptionally tall image easier to inspect or guarantee a universal maximum size.
Frequently Asked Questions
Can I save a Playwright screenshot as bytes instead of a file?
Yes. The page screenshot API can return screenshot bytes for further processing rather than writing directly to a path.
Does Playwright provide screenshots for languages other than JavaScript?
Yes. Playwright’s screenshot guide includes examples in several language bindings; consult the official guide for the syntax in the binding you use.
Free tools Windows power users keep installed
One-click scans. No signup required.
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.

