Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
FREEDOM251

Freedom251 › Blog › Playwright

How to Capture a Full-Page Screenshot of a Web App with a Virtualized List

By Freedom251 Team · · 5 min read

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

A full-page screenshot does not guarantee that every row in a virtualized list appears. Virtualized lists usually render only the rows near the current viewport, and expanding a screenshot to the page’s full scroll height does not necessarily scroll the real viewport to make off-screen rows render. To capture every row, scroll the list’s actual container in overlapping increments, wait for each section to render, and capture the visible sections. Then check for skipped, duplicated, or clipped rows.

Why a full-page screenshot can miss rows

Playwright’s fullPage screenshot option captures the page’s full scrollable extent. A virtualized list, however, may keep only a small window of rows in the DOM and replace those rows as the list scrolls. The Playwright discussion of screenshot behavior notes that a full-page capture does not move the visual viewport through the page to trigger that scroll-dependent rendering. Rows outside the virtualizer’s rendered window can therefore be absent from the image. Playwright screenshot documentation describes full-page capture; the behavior of viewport-based rendering is discussed in this Playwright issue.

As an Amazon Associate I earn from qualifying purchases.

Choose what “full” means

  • One tall image: If the application offers a safe capture mode that temporarily disables virtualization or renders all rows, it may produce a single image. Verify that doing so preserves row order, widths, sticky headers, and other layout. Whether an app supports this is application-specific.
  • Every row, with layout intact: Scroll the list’s real container and capture overlapping visible sections. The result is a sequence of images that can be reviewed individually or assembled if needed.
  • Only the page’s ordinary content: For a non-virtualized page, a standard full-page screenshot is appropriate.

Capture a virtualized list with Playwright

1. Find the element that actually scrolls

Determine whether the document viewport scrolls or the list sits inside its own scrollable panel. A page screenshot and an element screenshot are different capture operations: Playwright supports both full-page page screenshots and screenshots of a particular element. See the screenshot guide and locator screenshot API.

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

Use the selector for the scroll container, not automatically the table or an outer page wrapper. If the list is nested, scrolling the document may leave the list untouched.

#1 Best Overall
Philips 24 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 241V8LB | 1920×1080 LED Monitor, 4ms GtG, Adaptive Sync, HDMI 1.4, Tilt Adjust, Low Blue Light, 4yr Advance Replacement Warranty
  • 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

2. Scroll in overlapping steps and capture each segment

This illustrative JavaScript pattern measures the container, scrolls it in increments slightly shorter than its viewport, and captures the visible element. Replace the selector, settling condition, and overlap for your application. The example is a practical approach inferred from viewport-based rendering; it is not a universal virtual-list recipe specified by Playwright.

const list = page.locator('[data-testid="virtual-list"]');
const images = [];

// App-specific: measure the list's scrollable range and viewport.
const metrics = await list.evaluate(el => ({
  scrollHeight: el.scrollHeight,
  clientHeight: el.clientHeight,
}));

const overlap = 80;
const step = Math.max(1, metrics.clientHeight - overlap);

for (let top = 0; top < metrics.scrollHeight; top += step) {
  await list.evaluate((el, y) => { el.scrollTop = y; }, top);

  // Replace this with an app-specific wait for rows, data, and layout to settle.
  await page.waitForTimeout(100);

  images.push(await list.screenshot());
}

The timeout is only a placeholder, not a guarantee that rendering has completed. Prefer a condition tied to your app—for example, a particular row becoming visible or a loading indicator disappearing—when one is available. If scrolling triggers more data to load, the original scrollHeight may become stale: remeasure during the loop or stop when the app’s reliable end-of-list condition is met.

Rank #2
Philips 22 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 221V8LB | 1920×1080 LED Monitor, 4ms GtG, Adaptive Sync, HDMI 1.4, Tilt Adjust, Low Blue Light, 4yr Advance Replacement Warranty
  • 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

3. Verify coverage before treating the capture as complete

  • Check that the first and last expected rows are present.
  • Compare adjacent segments and confirm the overlap is enough to align them.
  • Look for rows repeated at the seam, skipped between captures, or clipped at an edge.
  • Wait for asynchronous data, images, and layout changes before capturing a segment.
  • Inspect sticky headers and variable-height rows; they can affect alignment even when the scroll increments are regular.

Use ordinary full-page capture for non-virtualized pages

For a page whose content is already rendered across its scrollable extent, Playwright’s standard full-page call is:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
await page.screenshot({ path: 'screenshot.png', fullPage: true });

That captures the full scrollable page, but it should not be treated as a way to force a virtualizer to render every row. The API also supports element screenshots and options such as clipping and scale; those options do not replace scrolling through a virtualized list. See the Page screenshot API.

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.

Or skip the browser setup

ScreenshotNeo offers a website screenshot API and MCP server. A request can return an image or PDF, but an API screenshot should not be assumed to collect every virtualized row: for that, the page still needs an app-supported all-rows mode or a capture flow that scrolls and captures segments. For ordinary page captures, a one-call request looks like this:

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

See the ScreenshotNeo API documentation for request options. ScreenshotNeo removes cookie banners, newsletter popups, and chat widgets before capture; bot checks, blank pages, and failed loads are not billed; its MCP server lets AI agents take screenshots; and the free plan includes 1,000 screenshots a month with no card, while paid plans start at $5 for 3,000. Learn more at ScreenshotNeo, or sign up for 1,000 free screenshots a month with no card.

Troubleshooting

The screenshot has a large blank area or missing rows

Likely cause: The capture expanded the page image without scrolling the list’s actual container, so off-screen virtual rows never rendered. Fix: Identify the list’s scroll owner, scroll that element in steps, and capture the rendered sections.

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 | 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

Rows repeat or disappear at segment boundaries

Likely cause: The increments or overlap do not match the rendered content, or variable-height rows and sticky elements change the apparent seam. Fix: Increase overlap, wait for layout to settle, and compare adjacent captures against visible row identifiers rather than assuming fixed row heights.

The last records are missing

Likely cause: More records load during scrolling, making an initial scroll-height measurement obsolete. Fix: Recompute the scroll range as the list grows, and end only when the application indicates there is no more data or the final expected row is present.

A fixed wait still captures loading content

Likely cause: A fixed delay is shorter than the app’s data or rendering delay. Fix: Replace the placeholder timeout with an application-specific wait condition, such as the target row appearing or a loading indicator disappearing.

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.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Capture-method trade-offs

Method What it gives you Main caveat
Playwright full-page screenshot One image of the page’s full scrollable extent Does not by itself scroll the real viewport to trigger virtualized rows
Scroll and capture segments Captures rows as they enter the virtualizer’s rendered window Requires app-specific settling and end-of-list checks; seams need verification
Temporarily render all rows May allow a single image containing all rows Only suitable if the app supports it and the altered layout remains faithful

Frequently Asked Questions

Can Playwright’s fullPage option capture every row in a virtualized table?

Not necessarily. It captures the full scrollable page extent, but does not by itself scroll the viewport through the list to trigger rendering of rows outside the virtualizer’s window.

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.

Should I stitch the captured segments into one image?

Only if a single image is required. Preserve the original segments until you have checked overlap and continuity; variable heights, sticky headers, and dynamic content can make seams difficult to align.

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.

Playwrightscreenshotsvirtualized listsWeb development

Leave a Reply

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

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

Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

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.