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

Yes—but not through one universal call. Selenium documents a full-document screenshot operation for Firefox WebDriver. Capybara’s page.save_screenshot delegates to the active driver, so it may produce only the viewport unless that driver supports and receives a full-page option. In a Capybara session using Selenium and Firefox, call the underlying Firefox driver’s full-page method explicitly and verify the resulting image.

What “full-page” means

A normal browser screenshot is the currently visible viewport. A full-page screenshot includes the document below the fold, often producing an image much taller than the browser window. These operations are different: a binding can support viewport capture while lacking a full-document implementation.

Selenium’s documented full-page route is notably available through Firefox WebDriver. Capybara does not implement one browser-independent screenshot engine; its screenshot method asks the configured driver to perform the capture. Therefore, the browser, Selenium binding, driver version and execution environment all matter.

Selenium full-page screenshots with Firefox

Python

With Selenium’s Firefox driver, use save_full_page_screenshot rather than the ordinary viewport method:

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.
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/long-page")
    driver.save_full_page_screenshot("full_page.png")
finally:
    driver.quit()

The method writes a full-document PNG. To obtain image bytes instead of writing directly to disk, use the full-page screenshot API exposed by the installed Python binding and decode its returned base64 value as documented for your Selenium version. The consulted Selenium Python documentation identifies version 4.49.0; bindings and signatures can change, so check the version installed in your project.

Java

In Java, FirefoxDriver implements HasFullPageScreenshot. Call getFullPageScreenshotAs and select an output target:

import java.nio.file.Path;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.remote.Augmenter;
import org.openqa.selenium.HasFullPageScreenshot;

public class FullPageShot {
  public static void main(String[] args) throws Exception {
    WebDriver driver = new FirefoxDriver();
    try {
      driver.get("https://example.com/long-page");
      HasFullPageScreenshot fullPage = (HasFullPageScreenshot) driver;
      fullPage.getFullPageScreenshotAs(
          org.openqa.selenium.OutputType.FILE)
          .renameTo(Path.of("full_page.png").toFile());
    } finally {
      driver.quit();
    }
  }
}

The exact output conversion depends on the Selenium Java version and the OutputType overload you choose. Keep the cast and method call tied to Firefox; do not assume every WebDriver implements this interface.

Ruby

Selenium Ruby’s ordinary screenshot API defaults to the viewport. It accepts full_page: true only where the current driver supports it, and the Firefox full-page extension is documented as a private API. Verify your installed gem and browser combination before relying on it:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
require "selenium-webdriver"

driver = Selenium::WebDriver.for :firefox, options: Selenium::WebDriver::Firefox::Options.new(args: ["-headless"])
begin
  driver.navigate.to "https://example.com/long-page"
  driver.save_screenshot("viewport.png")
  driver.save_screenshot("full_page.png", full_page: true)
ensure
  driver.quit
end

If full_page: true is not accepted or still creates a viewport image, consult the installed Ruby Selenium documentation for the Firefox extension method. Private APIs can change without the compatibility guarantees of a public interface.

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.

Does Capybara’s save_screenshot capture the entire page?

Not necessarily. Capybara’s page.save_screenshot(path, **options) delegates to save_screenshot on the configured driver. Capybara’s own documentation describes screenshot support as driver-dependent; it does not promise full-page output for every driver.

Viewport capture through Capybara

require "capybara/dsl"

Capybara.save_path = "tmp/capybara"
visit "https://example.com/long-page"
page.save_screenshot("viewport.png")

This is useful for recording what a user currently sees, but the resulting dimensions depend on the driver’s viewport.

Full-page capture with Capybara and Selenium Firefox

When the session uses Selenium Firefox, reach the underlying browser object and invoke its Firefox full-page method. The exact object exposure can vary by Capybara and Selenium versions:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
require "capybara/dsl"

Capybara.save_path = "tmp/capybara"
visit "https://example.com/long-page"

# Generic Capybara call: driver-dependent, commonly viewport-sized.
page.save_screenshot("viewport.png")

# Selenium Firefox-specific route, where this method is exposed:
page.driver.browser.save_full_page_screenshot("full_page.png")

Treat this as version-sensitive integration code. Confirm that page.driver.browser is the Selenium Firefox instance in your project, then inspect the saved image’s dimensions and content. If your application registers a custom driver, expose a helper that calls the underlying browser’s supported full-page method rather than assuming Capybara can translate an option for you.

Choosing the right implementation

Stack Recommended call What is established
Selenium Python + Firefox driver.save_full_page_screenshot(path) Selenium documents a full-document screenshot operation.
Selenium Java + Firefox HasFullPageScreenshot#getFullPageScreenshotAs(...) FirefoxDriver implements the full-page interface.
Selenium Ruby + Firefox full_page: true or the Firefox extension method Support is driver- and version-dependent; the extension is private API.
Capybara + Selenium Firefox Call the underlying browser’s full-page method Capybara delegates; generic behavior does not guarantee a document-length image.
Chrome or another driver Check that driver’s API and version Do not infer Firefox’s full-page support from a normal screenshot method.
Remote Grid/cloud session Verify the provider and driver combination Universal remote support is not established; test the exact environment.

Making captures reliable

Wait for the page state you need

Navigate, then wait for a meaningful application condition—such as a results container, a known heading or completion of an AJAX update—before capturing. A full-page operation can faithfully capture a page that is still loading, so “full page” does not mean “fully rendered.”

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.

Account for lazy content

Images or sections loaded only after scrolling may not exist when the screenshot starts. Trigger the application’s intended lazy-loading behavior, wait for the assets, and then capture. For deterministic tests, use stable fixtures or explicit readiness markers.

Check dimensions and artifacts

  • Open the output and verify that its height includes content below the fold.
  • Check that fixed headers, sticky banners and overlays are present or hidden as intended.
  • Use unique filenames in parallel tests to avoid one session overwriting another.
  • Preserve browser and driver logs when a capture fails; the screenshot is often the symptom, not the cause.

Control session conditions

Use a fixed viewport, locale, timezone and test data when comparing images. Headless and headed modes can differ in font availability, GPU behavior and timing. A remote browser can also have different installed fonts or network access from a local machine.

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

Troubleshooting

The image is only viewport-sized

Cause: the ordinary screenshot method was called, or the active driver ignored an unsupported full-page option. Fix: use Firefox’s explicit Selenium method, inspect the underlying Capybara browser object, and verify output dimensions.

undefined method save_full_page_screenshot (Ruby)

Cause: the configured driver is not Selenium Firefox, or the installed Ruby binding does not expose that method publicly. Fix: print the driver class, check the installed Selenium version’s API, and use the documented extension only when that exact version supports it.

Java cast or method errors

Cause: the session is not a FirefoxDriver that implements HasFullPageScreenshot, or Selenium artifacts are on incompatible versions. Fix: align Selenium components, confirm the concrete driver, and do not cast an unrelated driver to the full-page interface.

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

Capybara cannot find the browser object

Cause: a custom driver wrapper hides the Selenium instance. Fix: expose a deliberate helper in the driver registration, or implement a driver-level screenshot method that invokes the browser API internally.

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

Blank, incomplete or stale content

Cause: capture began before navigation, JavaScript, fonts or lazy images completed. Fix: wait on an application-specific selector, remove transient overlays, verify network access and capture after the page reaches its tested ready state.

It works locally but not on Grid

Cause: browser, driver, Selenium server or provider capabilities differ. Fix: record all versions and capabilities, reproduce with the same Firefox image, and confirm that the remote endpoint supports the full-page command. The available API documentation does not establish universal behavior for every Grid or cloud provider.

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

Performance, storage and test-design notes

Full-page images can be much larger than viewport images. Large documents increase encoding time, memory use and artifact-storage costs, especially when a test suite captures every failure and every step. Capture on failure or at explicit checkpoints rather than after every assertion unless visual regression requires otherwise.

PNG preserves text and sharp UI edges but is larger; JPEG is smaller with lossy compression where supported by your surrounding tooling. Keep image comparisons on the same browser, operating-system fonts and device scale to reduce noise. A full-page command is not a substitute for accessibility checks, DOM assertions or component-level visual tests.

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.
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 when you need a clean capture without maintaining Selenium, Firefox and driver infrastructure. One GET request can return PNG, JPEG, WebP or PDF:

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 request parameters. The same request in Python:

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 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 or consent banners and removes more than 60 known consent platforms, newsletter popups and chat widgets; each cleanup step can be disabled. Bot checks and CAPTCHAs, blank pages, timeouts, failed loads and cache hits are not billed, and response headers report the page verdict and billing status. It also offers an MCP server with take_screenshot, get_page_info and capture_pdf for Claude, Cursor and other MCP clients. The Free plan includes 1,000 screenshots per month without a card; paid plans start at $5 for 3,000 shots. Create a free ScreenshotNeo account.

FAQ

Does a full-page screenshot include content hidden behind tabs?

No. It captures rendered document content, not interface states that have not been opened. Activate the tab or state you need before capturing.

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

Can I use Capybara’s screenshot path configuration with Selenium’s method?

Yes. Keep Capybara’s save_path for organizing artifacts, then pass the resulting path to the underlying Selenium method. The method itself remains a Selenium/driver operation.

Is full-page capture guaranteed in every Selenium language?

No. The documented, concrete route covered here is Firefox WebDriver, with language-specific APIs. Other browsers and bindings require their own current documentation and verification.

Should visual tests use full-page images for every assertion?

Usually not. Use targeted screenshots or DOM assertions for routine checks, reserving full-page artifacts for page-level visual baselines, release evidence and failure diagnosis.

Frequently Asked Questions

Does Capybara automatically pass a full-page option to every driver?

No. Capybara delegates screenshot work to its active driver, and full-page support depends on that driver’s implementation.

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

Which Selenium browser has the documented full-document API discussed here?

Firefox WebDriver. Selenium documents explicit full-page methods for Firefox; support for other browsers must be checked separately.

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.