October DealsAmazon USOctober deal check: compare before you payAmazon 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 NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk6 min

Best Ways to Capture Full-Page Screenshots with Selenium and Chrome

Selenium’s standard screenshot call is the simplest starting point, but full-page results vary. Learn when to use Chrome DevTools or a binding-specific option and how to verify the image.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To capture a page beyond Chrome’s visible viewport with Selenium, start with the ordinary WebDriver screenshot call and inspect the resulting image: full-page behavior depends on the Selenium binding and browser/driver combination. If it captures only the viewport, use a documented full-page option in your binding or Chrome DevTools Protocol (CDP), which can explicitly capture beyond the viewport in supported integrations.

Choose a capture method that fits your Selenium binding

These approaches are not interchangeable guarantees. A screenshot of the current viewport, a screenshot of a selected element, a clipped image, and a full-document capture are different outcomes. Check the image itself for below-the-fold content.

As an Amazon Associate I earn from qualifying purchases.

Method Best suited for Trade-off
Standard WebDriver screenshot The simplest first attempt and familiar calls across Selenium bindings. Implementation behavior varies. Selenium’s JavaScript API describes whole-page capture as a best-effort preference, not a universal guarantee.
Chrome DevTools page capture Chrome-specific control, including capturing beyond the viewport in supported bindings. CDP integration is browser- and version-dependent; it is not the portable WebDriver screenshot contract.
Binding-specific full-page option A convenient documented feature where the binding and driver support it. Availability varies, and some APIs can raise an unsupported-operation error.
Maximize or enlarge the browser window Capturing a larger viewport, such as for a viewport-based comparison. Changing window size does not establish that the entire document will be captured.

Start with Selenium’s standard screenshot call

Load the page, wait for the application state relevant to your capture, then save a screenshot. Selenium’s JavaScript WebDriver API describes its screenshot call as taking a screenshot of the current page and says PNG data is returned as base64; it lists entire-page capture as a best-effort preference. That description does not establish that every binding and driver produces a full-document image.

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

Python example

from selenium import webdriver

options = webdriver.ChromeOptions()
driver = webdriver.Chrome(options=options)
try:
    driver.get("https://example.com")
    # Replace this with a condition meaningful to your application.
    driver.save_screenshot("page.png")
finally:
    driver.quit()

This is a standard screenshot call, not a promise of below-the-fold coverage. Inspect page.png and confirm that its dimensions and content match the page you need.

#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

JavaScript example

const { Builder } = require('selenium-webdriver');

(async () => {
  const driver = await new Builder().forBrowser('chrome').build();
  try {
    await driver.get('https://example.com');
    const pngBase64 = await driver.takeScreenshot();
    require('fs').writeFileSync('page.png', pngBase64, 'base64');
  } finally {
    await driver.quit();
  }
})();

The JavaScript API’s stated preference for the entire page is explicitly best effort. For its documented behavior, see Selenium’s JavaScript WebDriver API and WebDriver source documentation.

Use Chrome DevTools when you need beyond-viewport control

When the basic call does not capture the required area, a CDP page-capture command can expose more explicit controls, if your Selenium binding provides an integration for the Chrome protocol version in use. This is a Chrome-specific route, not a cross-browser WebDriver guarantee.

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

For example, Selenium’s .NET DevTools V148 API reference documents CaptureScreenshotCommandSettings, including a CaptureBeyondViewport property that defaults to false. The settings also document a clip, image format, source surface, JPEG quality, and an encoding choice that trades speed against size. Use the matching API reference and check that the browser’s supported protocol aligns with the generated Selenium binding; the setting’s availability and names are versioned.

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

A clip describes a rectangle using x, y, width, and height, with scale in device-independent pixels in the cited API documentation. A clip is not the same as asking for the full document: set and verify the capture parameters appropriate to your intended result. See Selenium’s .NET DevTools V148 capture settings and the V147 Viewport reference.

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.

Use a documented full-page option where your binding supports it

Ruby

Selenium’s Ruby TakesScreenshot API documents screenshot_as and save_screenshot with full_page: true where supported. The call can raise UnsupportedOperationError if the driver cannot provide the facility, so handle that possibility rather than assuming the option works everywhere.

The related Ruby FullPageScreenshot extension is labeled private API. Treat it as less stable than a documented public API and verify its support for your installed stack before depending on it. References: Ruby TakesScreenshot API and Ruby FullPageScreenshot extension.

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

Make the result reproducible

  1. Record your stack: note the language binding, Selenium version, Chrome version, and driver version. For CDP, check protocol compatibility with the binding’s generated API.
  2. Wait for the right page state: use an application-specific signal, such as a known element or completed state, rather than relying on a universal fixed delay. No single readiness condition fits every site.
  3. Try the standard screenshot call: save an image, then verify whether it includes the content below the viewport.
  4. Escalate only as needed: select a documented CDP or binding-specific full-page route that fits your language and versions.
  5. Check the output against the use case: confirm the relevant content appears and that the image is a document capture rather than only a viewport, element, or clip.
  6. Keep the capture context: save version information and the relevant capture settings with the output so you can reproduce differences later.

Dynamic pages and lazy-loaded content need particular care: the sources cited here do not establish how every site’s loading behavior affects capture. Confirm the content you need is present before judging the screenshot method.

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

Troubleshooting common full-page capture problems

  • The image ends at the viewport: the chosen WebDriver implementation may not provide a full-document result. Inspect its dimensions and switch to a supported CDP capture or documented binding option if available.
  • CDP settings or methods are missing: the binding may not expose that protocol API, or its generated version may not match Chrome’s supported protocol. Check the Selenium binding and browser versions before changing the call.
  • Ruby raises UnsupportedOperationError: the driver does not support the requested full-page facility. Use a supported driver-specific route or fall back to a method your stack documents.
  • Expected content is absent: verify that the page reached the application state you intended to capture. Choose a meaningful readiness condition and inspect the actual image; a generic delay is not a universal fix.
  • Maximizing did not produce a full page: window resizing changes the viewport dimensions, but the documentation does not establish it as a whole-document capture method.
  • The result changes across environments: compare recorded browser, driver, Selenium, and protocol versions, then retest the actual target pages. The documented APIs do not establish universal behavior across every combination.
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 without wiring up a Selenium browser session, ScreenshotNeo is a website screenshot API and MCP server. One GET request can return an image or PDF; its API accepts familiar screenshot parameter names to make switching easier.

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.

For a WebP capture of the target URL, replace the example URL and provide your API key. See the ScreenshotNeo API documentation.

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/consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each step can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits cost nothing, and the response reports page verdict and billing status in headers. Its MCP server provides take_screenshot, get_page_info, and capture_pdf tools for AI agents. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000.

Sign up free for 1,000 screenshots a month, with no card required.

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.

Frequently Asked Questions

Does Selenium’s normal screenshot call always capture the whole document?

No. The result depends on the binding and browser/driver implementation; inspect the image and use a supported full-page route if necessary.

Is Chrome DevTools full-page capture portable to other browsers?

No. The CDP route is Chrome-specific and version-dependent, unlike a portable WebDriver guarantee.

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 *

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
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver 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.