Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
World desk4 min

Playwright fullPage Screenshot Has the Wrong Height: How to Fix It

Compare the document’s scroll height with the PNG dimensions, then check fullPage, scale, clipping, page readiness, nested scroll areas, and rendering consistency.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If a Playwright full-page screenshot is too short, first check whether the document itself is short or whether the screenshot output differs from the page’s CSS-pixel height. Capture explicitly with fullPage: true and scale: 'css', then compare the document’s scroll height with the saved image dimensions. That separates missing or late-rendered page content from capture-option and pixel-scale issues.

Start with an explicit full-page capture

Playwright’s fullPage option defaults to false, which captures the visible viewport. Set it to true to request the full scrollable page. The scale option defaults to 'device'; setting it to 'css' makes the image use one pixel per CSS pixel, which makes height comparisons easier. See the Playwright Page API.

As an Amazon Associate I earn from qualifying purchases.

await page.screenshot({
  path: 'page.png',
  fullPage: true,
  scale: 'css',
});

Check that no clip rectangle is constraining the output to a fixed region. A clipped screenshot, a viewport screenshot, and a full-page screenshot are different capture goals.

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

Compare document height with the screenshot height

Measure the page immediately before capture. The document element and body can report different scroll heights, so inspect both rather than assuming one value represents every layout.

#1 Best Overall
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
const dimensions = await page.evaluate(() => ({
  viewportHeight: window.innerHeight,
  bodyHeight: document.body.scrollHeight,
  documentHeight: document.documentElement.scrollHeight,
}));
console.log(dimensions);

await page.screenshot({ path: 'page.png', fullPage: true, scale: 'css' });

Then inspect the PNG’s pixel dimensions with an image viewer or image-inspection utility. With CSS scale, its height should be comparable to the CSS-pixel document height, though page layout and browser rendering still determine what content exists to capture.

  • If both DOM heights are already too small, investigate what the application rendered and whether content is ready.
  • If DOM heights look correct but the file is unexpectedly short, isolate screenshot options, especially fullPage, scale, and clip.
  • If the image is roughly a device-pixel multiple of the expected CSS height, check whether the default device scale is affecting the comparison.

Make sure the content exists before measuring

Do not treat an arbitrary delay as proof that a page is ready. Wait for the application state or element that signals the content you need. On a page that loads sections as the visitor scrolls, scroll through the document before measuring and capturing, then verify that the newly revealed content appeared.

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

Lazy loading and delayed rendering are page-specific possibilities, not universal Playwright defects. If scrolling does not reveal the missing content, inspect the application’s own loading conditions and rendered DOM.

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

Check whether the content is in a nested scroll container

A scrollable panel can have its own content and scroll position, separate from the document’s scrollable extent. Decide whether the intended result is the whole page or the panel. Playwright’s screenshot API documentation notes that a screenshot of a scrollable element shows only its currently scrolled content. An element screenshot does not automatically mean “capture every item inside this panel.”

Rank #3
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.
  • For the whole document, use page.screenshot({ fullPage: true }) and diagnose document height.
  • For one component, take a locator or element screenshot.
  • For a deliberately bounded rectangle, use clip.

Keep the reproduction consistent

Set the intended viewport before navigation and keep it fixed while comparing runs. Playwright device emulation configures viewport-related parameters, and viewport settings can be overridden; see Playwright emulation. Rendering can also vary with the host operating system, browser version, settings, hardware, power source, and headless mode, as Playwright explains in its visual comparison guidance. For a useful comparison, keep the browser and execution environment consistent with the baseline where possible.

Diagnose the symptom

What you see Check first Reason
Image height is close to the viewport height Confirm fullPage: true is passed in the screenshot call. fullPage defaults to false. Playwright Page API
Image height is about a device-pixel multiple of expected CSS height Check scale and the device scale factor. 'device' counts device pixels; 'css' counts CSS pixels. Playwright Page API
DOM scroll height is already too small Check rendered content, application readiness, and any lazy-loaded sections. Full-page capture follows the scrollable page; confirm what the page exposes before capture. Playwright screenshots guide
A nested panel is incomplete Check whether the target is a scrollable element and its current scroll position. An element screenshot of a scrollable element shows only its currently scrolled content. Playwright Page API
Height changes between runs Hold viewport, browser version, and execution environment steady. Emulated viewport and rendering environment affect reproducibility. Playwright emulation; visual comparison guidance
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

If you need a screenshot by URL rather than a Playwright debugging session, ScreenshotNeo returns a screenshot or PDF with one GET request. Its API accepts a URL and can return PNG, JPEG, or WebP.

Rank #4
Sale
Samsung 27" Essential S3 (S36GD) Series FHD 1800R Curved Computer Monitor | 100Hz, Game Mode, Advanced Eye Comfort, HDMI and D-sub Ports (LS27D366GANXZA)
  • 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

cURL example, with the API details in the ScreenshotNeo documentation:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
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.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

ScreenshotNeo accepts cookie or consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each of those steps can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and the response says which outcome occurred. Its MCP server provides take_screenshot, get_page_info, and capture_pdf for Claude, Cursor, and other MCP clients. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000 screenshots. Sign up for ScreenshotNeo’s free plan.

Troubleshooting checklist

  • Only the visible screen was captured: pass fullPage: true explicitly.
  • The file dimensions do not match CSS measurements: set scale: 'css' while diagnosing, and remove any unintended clip.
  • The document height is short before capture: wait for the relevant application state; if the page loads on scroll, scroll through it and verify the content is present.
  • A component or panel is cut off: confirm whether it is a nested scroll container; an element screenshot can show only its currently scrolled content.
  • Repeated runs disagree: fix the viewport and use the same browser and environment as the reference capture.

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

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

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.