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 › browser automation

How to Take a Chrome Headless Screenshot of an Infinite-Scroll Page

By Freedom251 Team · · 5 min read

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

Chrome Headless can capture a screenshot, and Puppeteer can capture a full-page image—but neither documented screenshot option automatically scrolls an infinite-scroll page to load more content. First trigger the page’s scroll-driven loading, wait until the content you want is present, then capture it.

Why an infinite-scroll screenshot can be incomplete

Many feeds load additional items only after a scroll event or when a particular element enters view. A screenshot command captures the page state; it does not, by itself, make that page-specific behavior happen. Waiting longer may help with content that loads after a delay, but it is not a substitute for scrolling when scrolling is the trigger.

As an Amazon Associate I earn from qualifying purchases.

Keep the workflow in two stages: cause the desired content to render, then capture the resulting page or viewport. A full-page screenshot controls the extent of the image, not whether the page has already loaded every item.

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

Choose Chrome’s CLI or Puppeteer

Chrome Headless command line

For a simple capture, Chrome’s --screenshot option saves an image. The documented example combines it with --window-size to set the browser dimensions. Without --timeout or --virtual-time-budget, the documented behavior is to capture as soon as the page is loaded. These timing flags affect capture timing or time-dependent execution; they are not documented as scrolling the page. See the Chrome Headless command-line reference.

#1 Best Overall
IPEVO V4K Ultra High Definition 8MP USB Document Camera — Mac OS, Windows, Chromebook Compatible for Live Demo, Web Conferencing, Distance Learning, Remote Teaching, Green
  • Features an 8 Megapixel camera for capturing Ultra High Definition live images up to 3264 x 2448 pixels
  • High frame rate for lag-free live streaming – streams at up to 30 fps at full HD, and up to 15 fps at 3264 x 2448 pixel
  • Fast focusing speed helps minimize interruptions for frequent switching between different materials; features Sony CMOS Image Sensor for exceptional noise reduction and color Reproduction – great for capturing in dimly lit environments
  • Designed and made in Taiwan. Multi-jointed stand offers a simple fix for tightening loose joints caused by heavy daily use.Max Shooting Area:13.46 inch x 10.04 inch
  • Works with a variety of software and applications on Mac, PC and Chromebook that allows you to use it in different ways. System Requirements - Mac Intel Core i5 CPU 2.5 GHz or higher, OS X 10.10 or higher, Solid-state drive, and 200MB of free hard disk space, 256MB of dedicated video memory (For lag-free live streaming up to 1920 x 1080, and video recording of 1920 x 1080). Windows Recommended Requirements - Microsoft Windows 10,Intel Core i5 CPU 3.40 GHz or higher, 4 GB RAM, 200MB of free hard disk space, 256MB of dedicated video memory (For lag-free live streaming up to 1920 x 1080, and video recording of 1920 x 1080)
chrome --headless --window-size=1440,1000 --screenshot=page.png https://example.com

This captures a page state at the configured dimensions. It is not a general-purpose infinite-scroll loader, and the CLI example does not demonstrate a scroll loop. If the feed needs scrolling before capture, use browser automation that can perform that interaction.

Puppeteer full-page capture

Puppeteer exposes fullPage: true in its screenshot options to capture the full page; the documented default is false. Its guide demonstrates Page.screenshot() and navigation with waitUntil: 'networkidle2', but that example is not a guarantee that every infinite feed has finished loading. Check the documentation matching your installed Puppeteer version: ScreenshotOptions and Screenshots guide.

Rank #2
THUSTAR 8MP Document Camera & Webcam 4K with Dual Microphones, USB Visualiser A3-Size, 3-Level LED Lights, Image Invert Function, Fold, for Live Demo, Distance Education -Windows, macOS and Chrome OS
  • USB Document Camera with adjustable image reversal: The camera that can manually adjust image reversal. In video chat or image output, the image can be freely adjusted left/right and up/down; you can also manually adjust the reversed image that appears in the device to a normal image
  • 8MP/2448P document camera with 30fps: it output ultra-high-definition images and videos live transmission, up to 2448P megapixels. Press the focus button once to automatically focus the document camera once. Moving the object under the lens, the camera will not be arbitrary automatic focus and the image dance. Macro can capture objects as close as 3.94"
  • Document Camera with Adjustable Image Brightness : the usb camera has brightness (plus) and brightness (minus) buttons, you can manually adjust the image brightness with 10 degree, to make sure that you can get the clear image. Camera comes with 14 ring lamp beads, 3 levels of brightness adjustable, which can eliminate shooting problems under difficult lighting conditions, allowing you to capture objects in dark and bright environments, and can also achieve Selfie fill-in function
  • Foldable Document Camera for teachers/classroom: embedded design, occupies a small space after folding, easy to carry; Multi-joint support with multi-angle rotate freely usb camera can capture 2D and 3D objects better and shooting high-definition images and videos. Maximum covering area: 16.5" x 116" in. (A3 paper)
  • USB Camera with highly compatible, plug-and-play : applicable to Windows PCS, Macs, and Chromebooks, automatically installs drivers when the device is plugged in, compatible with Tiktok, Google Meet, Skyp-Microsoft Teams, Zoom; it has built-in dual silicon microphones, which can reduce noise and improve sound quality

Scroll, wait, and stop with Puppeteer

The following is a bounded starting point, not a universal recipe. It scrolls repeatedly, waits briefly for page activity, and stops when the document height does not increase for several attempts. Adjust the wait and stopping signal to the target site: some pages append content asynchronously, use a sentinel element, or virtualize older items rather than retaining the whole feed in the document.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
const puppeteer = require('puppeteer');

(async () => {
  const browser = await puppeteer.launch({ headless: true });
  const page = await browser.newPage();
  await page.setViewport({ width: 1440, height: 1000 });

  try {
    await page.goto('https://example.com/feed', {
      waitUntil: 'domcontentloaded',
      timeout: 60000,
    });

    // Replace this with a target-specific readiness check if available.
    await page.waitForSelector('body');

    let unchangedPasses = 0;
    let previousHeight = 0;
    const maxPasses = 30;

    for (let pass = 0; pass < maxPasses; pass++) {
      const height = await page.evaluate(() => {
        window.scrollTo(0, document.body.scrollHeight);
        return document.body.scrollHeight;
      });

      await new Promise(resolve => setTimeout(resolve, 1000));
      const newHeight = await page.evaluate(() => document.body.scrollHeight);

      if (newHeight <= height || newHeight <= previousHeight) {
        unchangedPasses++;
      } else {
        unchangedPasses = 0;
      }
      previousHeight = newHeight;

      if (unchangedPasses >= 3) break;
    }

    await page.screenshot({ path: 'feed.png', fullPage: true });
  } finally {
    await browser.close();
  }
})();

Install Puppeteer in your project using the method appropriate to your setup, then run the script with Node.js. The loop bounds the number of scroll attempts, but its height-based stopping test is only a heuristic: a feed may load items without changing the measured document height, or may add content after longer than the chosen wait. For stronger completion detection, wait for a site-specific item count, a known terminal marker, or another signal exposed by the page.

Rank #3
Document Camera for Teachers and Classroom, Gawervan USB Webcam/Doc Camera Built-in Mic— Mac OS, Windows, Chromebook Compatible for Live Demo, Web Conferencing, Distance Learning, Remote Teaching
  • 🔍 3-in-1 Versatile Tool: The document camera transforms into a dynamic webcam and visualizer, ideal for classroom lessons or remote teaching. Adjust its 360° lens to capture crisp 1080P live demos, worksheets, or 3D objects—perfect for teachers and students sharing resources interactively
  • 🎒 Portable USB Design: Foldable hose and compact build make this USB document camera a travel-ready companion. Effortlessly rotate it for multi-angle views during video calls or homeschool sessions—no bulky setups required
  • 🎥 Crystal-Clear Focus & Detail: Designed as a document camera for teachers, its manual focus ensures sharp, blur-free images even in dim lighting. Show fine text, science experiments, or art projects in stunning 1080P resolution at 30fps
  • 🎤 Noise-Reduced Collaboration: Dual built-in mics eliminate background noise, delivering studio-quality sound for Zoom, Google Meet, or TikTok lessons. Perfect for classroom discussions, parent-teacher conferences, or lively student Q&A sessions
  • 💻 Plug-and-Play Compatibility: Works seamlessly with Windows, Mac, Chromebook, and apps like Microsoft Teams or Skype. Includes USB-C for instant setup—ideal for document camera for classroom tech or home office video chats!

Set a stopping rule before capturing

An infinite feed may have no natural end. Decide in advance how much content the image should include and cap the job by attempts, elapsed time, target item count, or output height. Without a limit, a page that keeps appending content can make a capture job slow or produce an impractically tall image.

  • Known number of items: stop once the target count is rendered.
  • End-of-feed marker: stop when the site’s terminal element appears.
  • No-new-content heuristic: stop after a bounded number of scroll attempts without a new item or document-height increase.
  • Virtualized list: capture may show only currently rendered items even after scrolling; a full-page option does not establish that off-screen items remain in the DOM.

The appropriate selector, scroll interval, and completion test depend on the page. Validate the final rendered state rather than treating a fixed delay or a full-page flag as proof that every item loaded.

Rank #4
INSWAN INS-1 Classic USB Document Camera/Webcam, 8MP, Built-in LED, Mic | Auto Focus, Plug & Play, Compatible with Windows / Mac / Chromebook for Distance Learning, Live Demo, Online Teaching, White
  • [Crystal-Clear Imaging and Smooth Video Streaming] 8 Megapixel Ultra-High definition SONY camera captures live images at up to 3264 x 2448 pixels with lag-free video streaming at 30 fps across all resolutions.
  • [Your Space-Saving Multi-Joint Camera] Experience the durability of our multi-joint design while enjoying a generous viewing size of 14.72 x 11 inches. This compact camera is perfect for your desktop set up.
  • [Powerful Features, Crisp Image] Featuring LED light, and an anti-glare sheet for exposure challenges in varying lighting. 7-segment brightness control, image flip, and built-in mic ensure top-notch performance. Autofocus lens and macro capability (capturing objects as close as 3.9 inches).
  • [Feature-Packed INSWAN Documate Software] The bundled full-function INSWAN Documate software offers digital zoom, image annotation, hue adjustment, image rotation/flip, video recording, snapshots and other useful features. Download the latest version for free and access tutorial videos!
  • [Plug-n-Play & High Compatibility for Effortless Conferencing] The INS-1 comes with a USB-A cable for instant plug-and-play operation. Seamlessly works with Documate and other webinar software on PC (Windows 7/8/10/11), Mac (OS13.5 or higher), iPad (OS 17 or higher; must have a USB-C port) , Chromebook (38.0 or higher). Designed and made in Taiwan.

Troubleshoot missing or incomplete content

  • Only the first screen appears: the capture ran before scroll-triggered loading. Add an explicit scroll interaction and wait for newly loaded content before taking the screenshot.
  • A longer timeout changes nothing: timing flags do not trigger scroll events. Confirm the site’s loading trigger and automate it.
  • The screenshot is full height but items are missing: full-page capture expands the screenshot extent; it does not prove that unloaded content exists in the rendered page.
  • The loop stops too soon: document height may stay constant while items load, or the site may need more than the chosen wait. Prefer a target-specific selector or item-count condition.
  • The capture runs indefinitely or becomes too large: lower the attempt or time limit and set a target item count or maximum output appropriate to the task.
  • You need to inspect what Chrome rendered: Chrome’s Headless announcement documents remote debugging with --remote-debugging-port; use the debugging workflow appropriate to your installed Chrome version.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server. It takes a URL in one GET request and returns an image or PDF. For example, this captures a page as WebP:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com/feed -o shot.webp

See the ScreenshotNeo API documentation for parameters and response details. 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; paid plans start at $5 for 3,000. Sign up for free and get 1,000 screenshots a month with no card.

Version note

Chrome’s 2023 announcement said the newer Headless mode first became available in Chrome 112 and was then enabled explicitly with --headless=new. That is a historical rollout detail, not a statement about current defaults. Check documentation for the Chrome version installed in your environment before relying on a particular mode or flag: Chrome’s Headless mode gets an upgrade.

Best Value
PAKOTOO 8MP USB Document Camera for Teachers and Classroom for A3 A4 Size with Dual Mic, 3-Level LED Light, Up and Down, Left and Right Image Inversion, for Distance Teaching & Learning
  • Document camera with Image reversal function: The image reversal function can be realized through the button (no need to pass the software). When video chatting or picture output, the picture can be freely reversed left and right, up and down; The PAKOTOO document camera connects the computer via USB 2.0 cable, it does not support zoom and HDMI features, nor it does compatible with iPad.
  • Document camera for teachers with 3 levels of brightness adjustment and 10 levels of exposure adjustment: The brightness function can be realized by buttons to ensure that you can get clearer images. It can also realize the Selfie fill light function in dark and bright environments
  • Document camera for classroom with Foldable: Embedded design, takes up little space after folding, and is easy to carry; multi-joint supports multi-angle free rotation, which can better capture 2D and 3D objects. Maximum coverage area: 16.5" x 11.6" in (A3 paper)
  • USB document camera with autofocus: 2448P high-definition document cameras, press the focus (AF) button once, and the document camera will automatically focus once. Move the object under the lens, the image will not be blurred. Macro captures objects as small as 3.94"
  • Important: PAKOTOO Document camera is not plug and play. You need to select "USB Camera" in the system that comes with your computer. The document camera is equipped with a USB-C cable, which can be directly used with devices with USB-C interface such as MacBook. Compatible with Windows PCS, Macs and Chromebooks, works with Tiktok, Google Meet, Skyp-Microsoft Teams, Zoom; If you encounter any problems during the use of the product, or the computer does not recognize the camera, please be sure to contact our friendly support team for a quick solution.

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.

browser automationChrome Headlessinfinite scrollPuppeteerweb screenshots

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
PC Slower Than It Used to Be?Free scan - under a minute

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.