Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Set the page’s viewport width and height in CSS pixels, then capture with fullPage: true. The viewport determines the responsive layout; fullPage determines how much of the document the screenshot includes. They are separate settings.

Capture a full page at a chosen viewport

This runnable JavaScript example uses Playwright’s Chromium browser. The 1440 × 900 viewport is an example, not a Playwright default; replace it with the dimensions you need.

import { chromium } from 'playwright';

const browser = await chromium.launch();
try {
  const page = await browser.newPage({
    viewport: { width: 1440, height: 900 },
  });

  await page.goto('https://example.com', { waitUntil: 'load' });
  await page.screenshot({ path: 'full-page.png', fullPage: true });
} finally {
  await browser.close();
}

Run it in a project with Playwright installed, for example by saving it as screenshot.mjs and running node screenshot.mjs. The output file is written to the current working directory. The official Page API documents the screenshot options, and the screenshots guide shows the full-page workflow.

What viewport and full-page mode each control

  • Viewport: the browser’s CSS-pixel width and height used to lay out the page. It affects responsive breakpoints and therefore the appearance of the captured page.
  • fullPage: true: captures the full scrollable page instead of only the currently visible viewport. It does not set or change the viewport dimensions.

Set the viewport before navigation when you want the page to load and render at that size. A full-page screenshot is effectively the page’s scrollable content captured as a tall image, not a promise that every site-specific element or remote asset has finished loading.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Philips 24 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 241V8LB
  • CRISP CLARITY: This 23.8″ Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
  • WORK SEAMLESSLY: This sleek monitor is virtually bezel-free on three sides, so the screen looks even bigger for the viewer. This minimalistic design also allows for seamless multi-monitor setups that enhance your workflow and boost productivity
  • A BETTER READING EXPERIENCE: For busy office workers, EasyRead mode provides a more paper-like experience for when viewing lengthy documents

Adjust the viewport or capture extent

Choose the viewport before opening the URL

Set viewport when creating the page, as in the example. Choose dimensions that match the layout you want to inspect. For an existing page, Playwright also provides a viewport-setting API; configure it before capture, and preferably before navigation if the intended size should affect initial responsive layout.

Capture only what you need

Use fullPage: true for the entire scrollable page. If the target is a particular element or a bounded region, use a locator screenshot or the screenshot API’s clip option instead. Those approaches avoid producing an unnecessarily tall image when the full document is not required; see the Page API for their options.

Rank #2
Philips 22 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 221V8LB
  • CRISP CLARITY: This 22 inch class (21.5″ viewable) Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • 100HZ FAST REFRESH RATE: 100Hz brings your favorite movies and video games to life. Stream, binge, and play effortlessly
  • SMOOTH ACTION WITH ADAPTIVE-SYNC: Adaptive-Sync technology ensures fluid action sequences and rapid response time. Every frame will be rendered smoothly with crystal clarity and without stutter
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors

Save a file or keep the image buffer

Providing path writes the screenshot to a file. If you omit path, page.screenshot() returns the image buffer, which you can pass to other code or save yourself.

Handle content that appears only after scrolling

Full-page capture sets the screenshot extent; it does not guarantee that a site’s lazy-loaded images or sections have been activated. If content is loaded only when it approaches the viewport, scroll through the relevant areas and wait for the content to appear before taking the screenshot. The exact trigger and wait condition depend on the site.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Dell 24 Monitor - SE2426H - 23.8-inch FHD (1920x1080) 144Hz 1ms Display, in-Plane Switching (IPS) Technology, AMD FreeSync™, TÜV 3-Star 2X HDMI, Tilt
  • Clear visuals. Fluid motion: A 144Hz refresh rate and 1ms MPRT deliver smooth, tear‑free motion across work, gaming, and streaming for clearer, more fluid viewing.
  • Eye comfort: TÜV Rheinland 3‑star* certification reduces harmful blue light while preserving stunning color quality without compromise. *TÜV Rheinland 3-star eye comfort certification.
  • Wide viewing angle: Get consistent views across a wide 178° /178° viewing angle.
  • In-Plane Switching (IPS): See excellent color accuracy and consistency across wide viewing angles with In-plane Switching (IPS) technology.
  • Ultra-thin bezels: Maximize your viewing experience with thin bezels.

After capture, inspect the image for missing content, unexpected responsive layout, and sticky or fixed elements that may appear differently in a tall capture. These are practical checks rather than guarantees of the screenshot option.

Common problems and fixes

Symptom Likely cause What to do
Only the visible screen is captured fullPage is false or was omitted; it defaults to false. Set fullPage: true in page.screenshot().
The screenshot has the wrong responsive layout The page was created or loaded with a different viewport width or height. Set the intended CSS-pixel viewport before navigation and capture.
Images or sections below the fold are missing The site loads them only after scrolling or another site-specific event. Trigger the loading behavior, wait for the expected content, then capture.
The screenshot call rejects the option The code may use another Playwright language binding or a different option spelling. Use the spelling for the binding and installed version. In Python, the option is full_page=True; JavaScript uses fullPage: true.
The output is too tall or includes irrelevant areas A full-page capture includes the full scrollable document. Capture a specific element or use a clip when only a region is needed.

Or skip the browser setup

ScreenshotNeo takes screenshots through one GET request. Its API accepts a URL and can return an image or PDF. See the ScreenshotNeo API documentation for request options.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp

ScreenshotNeo accepts cookie or consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each of those steps can be turned off. Bot checks and CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and responses identify the page verdict and billing status in headers. It also provides an MCP server with screenshot, page-info, and PDF-capture tools for AI agents. The Free plan includes 1,000 screenshots per month without a card; paid plans start at $5 for 3,000 screenshots.

Sign up for ScreenshotNeo’s free plan to get 1,000 screenshots a month with no card.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
Samsung 27" Essential S3 (S36GD) Series FHD 1800R Curved Computer Monitor
  • CURVED FOR ENHANCED ENGAGEMENT: An immersive viewing experience with a curved monitor that wraps more closely around your field of vision; It creates a wider view, enhancing depth perception and minimizing peripheral distraction
  • SMOOTH PERFORMANCE FOR SEAMLESS CONTENT: Stay in the action when playing games, watching videos, or working on creative projects; The 100Hz refresh rate reduces lag and motion blur so you don't miss a thing in fast-paced moments¹
  • MORE GAMING POWER: Gain the edge with optimizable game settings; Color and image contrast can be adjusted to see scenes more vividly and spot enemies hiding in the dark; Game Mode adjusts any game to fill the screen so you can view every detail²
  • KEEP IT EASY ON THE EYES: Care for your eyes and stay comfortable, even during long sessions; Advanced eye comfort technology certified by TÜV reduces eye strain by minimizing blue light and reducing irritating screen flicker²
  • INCREASED VERSATILITY: Connect to more; Plug devices straight into your monitor for increased flexibility, making your computing environment even more convenient
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Frequently Asked Questions

Does full-page mode change the viewport size?

No. Set the viewport separately; full-page mode changes the captured extent.

Best Value
Sale
Sceptre New 22-Inch Gaming Monitor, FHD 1080p, Up to 144Hz, HDMI, DisplayPort, Built-in Speakers, Machine Black (E225W-FW144 Series, 2026)
  • 【INTEGRATED SPEAKERS】Whether you're at work or in the midst of an intense gaming session, our built-in speakers provide rich and seamless audio, all while keeping your desk clutter-free.
  • 【EASY ON THE EYES】 Protect your eyes and enhance your comfort with Blue-Light Shift technology. This feature reduces harmful blue light emissions from your screen, helping to alleviate eye strain during long hours of use and promoting healthier viewing habits.
  • 【WIDEN YOUR PERSPECTIVE】Our sleek minimal bezel design ensures undivided attention. The nearly bezel-free display seamlessly connects in a dual monitor arrangement, delivering an unobstructed view that lets you focus on more at once, completely distraction-free.

What is the Python option for a full-page screenshot?

Use full_page=True with Python’s screenshot API.

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.