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

Use the framework’s document-capture option, not a series of viewport screenshots. In Playwright and Puppeteer, set fullPage: true on page.screenshot(). In Selenium, full-page support depends on the browser, driver, and language binding; the reviewed Firefox Python API provides an explicit full-document method. A full-page image contains the page’s scrollable document, not the browser’s address bar or other browser chrome.

This guide shows runnable examples, explains when to wait or prepare a page, and covers output formats, dynamic content, lazy loading, failures, and practical framework selection.

What “full page” means

A normal screenshot captures the current viewport. A full-page screenshot captures the scrollable document as one image, as if the page were displayed on a screen tall enough to contain it. The result does not include the browser window frame, tabs, address bar, or operating-system chrome.

The option does not automatically make every application state complete. Lazy images, infinite-scroll feeds, animations, consent dialogs, and content loaded only after interaction may still need preparation before capture.

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.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Playwright: capture the complete scrollable page

JavaScript

const { chromium } = require('playwright');

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

  await page.goto('https://example.com', { waitUntil: 'networkidle' });
  await page.screenshot({
    path: 'page.png',
    fullPage: true
  });

  await browser.close();
})();

fullPage: true tells Playwright to capture the full scrollable page instead of only the visible viewport. Supply a path to save the file; you can also select an explicit image type.

Python

from playwright.sync_api import sync_playwright

with sync_playwright() as p:
    browser = p.chromium.launch()
    page = browser.new_page(viewport={"width": 1440, "height": 900})
    page.goto("https://example.com", wait_until="networkidle")
    page.screenshot(path="page.png", full_page=True)
    browser.close()

Java

import com.microsoft.playwright.*;

public class FullPageShot {
  public static void main(String[] args) {
    try (Playwright playwright = Playwright.create()) {
      Browser browser = playwright.chromium().launch();
      Page page = browser.newPage(new Browser.NewPageOptions()
          .setViewportSize(1440, 900));
      page.navigate("https://example.com",
          new Page.NavigateOptions().setWaitUntil(WaitUntilState.NETWORKIDLE));
      page.screenshot(new Page.ScreenshotOptions()
          .setPath(java.nio.file.Paths.get("page.png"))
          .setFullPage(true));
      browser.close();
    }
  }
}

Useful Playwright controls

  • path chooses the output file.
  • type selects PNG, JPEG, or another supported output type for your binding.
  • clip limits capture to a rectangle; using it changes the result from an unrestricted document shot.
  • Animation controls can disable or fast-forward animations for a stable image.
  • Locator masks can cover sensitive or variable regions.
  • Background omission creates transparency where supported.

Use the syntax and option names for the Playwright language package installed in your project; the official bindings expose equivalent concepts with language-specific spelling.

Puppeteer: use fullPage in ScreenshotOptions

JavaScript

const puppeteer = require('puppeteer');

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

  await page.goto('https://example.com', { waitUntil: 'networkidle2' });
  await page.screenshot({
    path: 'page.png',
    fullPage: true
  });

  await browser.close();
})();

Puppeteer’s ScreenshotOptions.fullPage is a Boolean and defaults to false. Set it explicitly when the document, rather than the viewport, is the required target. The example uses networkidle2 as a navigation wait; it is a useful starting point, not a guarantee that an application has finished every asynchronous task.

Output and image options

  • path writes the image. When a path is supplied, Puppeteer can infer the image type from its extension.
  • type explicitly selects the format.
  • quality controls JPEG/WebP quality where supported; it does not apply to PNG.
  • clip captures a specified rectangle instead of the entire document.
  • captureBeyondViewport controls capture outside the current viewport for applicable modes.
  • omitBackground removes the default background when transparency is desired.

Option availability can change with the installed Puppeteer release. The current reference reviewed for this guide displays version 25.12.0, so verify the API against your project’s installed version.

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

Preparing a page before Puppeteer capture

For pages that load content after scrolling, trigger that behavior before taking the screenshot. A simple bounded scroll loop can encourage lazy elements to render:

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
await page.goto('https://example.com/article', { waitUntil: 'domcontentloaded' });
await page.evaluate(async () => {
  await new Promise(resolve => {
    let last = 0;
    const timer = setInterval(() => {
      window.scrollBy(0, 700);
      const current = document.documentElement.scrollHeight;
      if (current === last) {
        clearInterval(timer);
        resolve();
      }
      last = current;
    }, 150);
  });
});
await page.screenshot({ path: 'article.png', fullPage: true });

This is application-specific: an infinite feed may never reach a stable height. Set a maximum duration or scroll count in production, and wait for a selector that identifies the content you actually require.

Selenium: full-page capture is driver- and binding-dependent

Selenium’s generic screenshot commands describe the current browsing context or an element; they do not promise identical full-document behavior across every browser and binding. The reviewed Python Firefox driver API documents an explicit full-page method.

Python with Firefox

from selenium import webdriver
from selenium.webdriver.firefox.options import Options

options = Options()
options.add_argument("--headless")
driver = webdriver.Firefox(options=options)
try:
    driver.get("https://example.com")
    driver.get_full_page_screenshot_as_file("page.png")
finally:
    driver.quit()

The same API documents save_full_page_screenshot, byte output, and base64 output methods. Check the installed Selenium Python package, Firefox version, and geckodriver compatibility before relying on a particular method.

Free tools Windows power users keep installed

One-click scans. No signup required.

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

Why a generic Selenium example can fail

Some drivers implement only viewport or element screenshots. Selenium’s Ruby documentation, for example, states that full-page capture is supported only when the driver provides that capability. If your chosen browser and binding lack a full-document method, you may need a driver-specific feature, a viewport-stitching library, or a different framework. Do not assume that a call named “screenshot” has the same extent everywhere.

Wait for the state you intend to capture

Navigation readiness is not visual readiness

load, domcontentloaded, and network-idle waits describe different milestones. A single-page application may continue rendering after any of them. Prefer a wait tied to the page’s contract, such as a hero selector, a table row count, or a “report ready” marker.

Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
  • Use a navigation wait to avoid capturing an empty initial document.
  • Wait for a required selector before the screenshot.
  • Use a bounded delay only when the page has a known animation or rendering delay.
  • For dashboards, authenticate and wait for the data request or visible data state.

Lazy images and infinite scroll

The full-page flag defines the capture extent; it does not establish that every deferred image has loaded. Scroll or otherwise trigger lazy loading, wait for image completion where practical, and use a maximum time for pages that continually append content. If the page never settles, capture a defined range or a known viewport instead of waiting forever.

Animations, popups, and sensitive data

Disable or finish animations when reproducibility matters. Hide cookie notices, chat bubbles, and transient overlays only when doing so is permitted and accurately represents your use case. Mask credentials, personal data, and rotating identifiers. A screenshot can expose anything rendered in the page, including information below the fold.

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

Format, dimensions, and file handling

  • PNG is lossless and suitable for text, diagrams, and pixel comparison.
  • JPEG or WebP can produce smaller files for photographic pages; quality settings affect readability and size.
  • Very tall documents can create large images. Consider a PDF, a defined clip, or section-level captures when downstream systems impose dimension limits.
  • Choose a deterministic filename and store the URL, viewport, browser version, and capture timestamp alongside the artifact for reproducibility.

Full-page capture is a document image, not a print layout. If you need page breaks, paper size, margins, or selectable text, generate a PDF instead of treating one extremely tall bitmap as a document substitute.

Troubleshooting common failures

The image contains only the viewport

Cause: the full-page option was omitted, misspelled, or unsupported by the Selenium driver. Fix: use fullPage: true in Playwright or Puppeteer; with Selenium, call the documented full-page method for the selected driver or verify that the driver supports the capability.

The bottom of the page is blank

Cause: lazy content was never activated, or the capture ran before rendering completed. Fix: scroll in a bounded loop, wait for a meaningful selector or image state, and then capture.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

The screenshot stops while the page keeps growing

Cause: an infinite-scroll application has no stable document height. Fix: define a maximum scroll count or capture a known section; do not wait indefinitely for network idle.

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

A cookie banner or chat widget covers content

Cause: an overlay is part of the rendered page. Fix: handle the consent flow where appropriate, close the widget through its supported UI, or hide a known selector for a controlled visual test.

Fonts or images are missing

Cause: the screenshot started before resources loaded, a request failed, or the headless environment lacks access to the asset. Fix: inspect browser console and network errors, wait for the required resources, confirm authentication and headers, and retry with a reproducible environment.

Selenium reports that the method does not exist

Cause: the binding or driver does not expose full-page capture. Fix: check the exact Selenium version and browser-driver pair, then use a supported driver-specific method or switch to Playwright or Puppeteer for a documented full-page API.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Which framework should you choose?

Need Practical choice Reason
JavaScript/TypeScript and a direct full-page API Playwright or Puppeteer Both document fullPage: true on page screenshots.
Multiple browser engines and built-in masking or animation controls Playwright Its screenshot API exposes those controls alongside full-page capture.
Existing Puppeteer automation Puppeteer The same page screenshot call accepts fullPage, minimizing code changes.
Existing Selenium Firefox Python automation Selenium The reviewed Firefox API provides an explicit full-document method.
Portable Selenium behavior across arbitrary browsers and bindings Verify first Full-page support is not uniform; generic screenshot calls are not a universal guarantee.

Base the decision on the language already in your codebase, required browser coverage, and the exact driver or binding support you can validate. The documentation supports these feature distinctions, not a universal claim that one framework is best.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

Or skip the browser setup

ScreenshotNeo provides a website screenshot API and MCP server. One GET request returns a PNG, JPEG, WebP, or PDF, while the service handles the browser work for you.

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 documentation for all request options. The same call in Python is:

import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)

And in Node.js:

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

Before capture, ScreenshotNeo accepts cookie and consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each cleanup step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers identify the page verdict and billing result. Its MCP server supplies take_screenshot, get_page_info, and capture_pdf tools for Claude, Cursor, and other MCP clients. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 shots. Create a free ScreenshotNeo account to try it.

FAQ

Does full-page capture include the browser address bar?

No. It captures the web page’s scrollable document, not browser chrome or the operating-system window.

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

Can I use full-page screenshots for infinite-scroll feeds?

Only after deciding how much content you want. Infinite feeds may never reach a stable height, so use bounded scrolling or capture a defined section.

Why is my Selenium result different from a Playwright result?

Screenshot extent is driver- and binding-dependent in Selenium. Confirm the selected browser’s documented full-page capability rather than assuming generic screenshot commands are equivalent.

When should I create a PDF instead?

Choose PDF when you need paper size, margins, page ranges, landscape orientation, or a document intended for printing rather than one very tall bitmap.

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.

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