October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan 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

How to Use LambdaTest Screenshots with Selenium for Cross-Browser Testing

Capture the current Selenium page, run URL screenshots across LambdaTest browser configurations, or compare SmartUI snapshots against a baseline.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To capture a screenshot during a Selenium test on LambdaTest, navigate to the page, wait for the state you want to record, and call your language binding’s WebDriver screenshot method. If instead you need screenshots of a URL across several browser and operating-system combinations, use LambdaTest’s separate Automated Screenshot API. For visual comparisons against a baseline, use SmartUI. These are three distinct workflows, not interchangeable screenshot commands.

Choose the screenshot workflow that matches the job

What you need Use What you get
Record the current page during a Selenium test Selenium WebDriver screenshot method An image of the current browsing context, typically saved locally or returned as image data.
Capture one URL across configured browser and OS combinations LambdaTest Automated Screenshot API A test run with result records and image URLs for each requested configuration.
Detect visual changes between builds SmartUI Selenium SDK Named snapshots compared with a baseline.

LambdaTest documentation now also uses the TestMu AI name. The API and SmartUI documentation cited below are published under TestMu AI branding; verify the current product labels in your account before following UI-specific steps.

As an Amazon Associate I earn from qualifying purchases.

Capture a screenshot inside a Selenium test

Selenium captures the state of its current browsing context when the screenshot call runs. Navigate first, wait for the intended content to render, then capture at that point in the test. The exact method signature varies by language binding; Selenium’s documentation shows saving a screenshot to a PNG path and returning screenshot data, including base64 in some bindings: Selenium WebDriver screenshots.

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

For example, in Python using a WebDriver instance already created and pointed at the page:

#1 Best Overall
Sale
Motorola Moto g - 2026 | Unlocked | Made for US 4/128GB | 50MP Camera | Pantone Slipstream, Cellular_Phone
  • Universal unlocked. Compatible with all major U.S. carriers, including Verizon, AT&T, T-Mobile and other prepaid carriers.
  • Super-bright, super-smooth 6.7" display. See your screen clearly even outdoors in sunlight, and enjoy seamless views with a fast-refreshing 120Hz display.*
  • AI-powered camera system. Take stunning photos in any light with the 50MP camera**, look your best with a 32MP selfie cam*****, and capture extreme close-ups.
  • Superfast 5G performance. Unleash your entertainment at 5G speed*** with the MediaTek Dimensity 6300 chipset and up to 12GB of RAM with RAM Boost****.
  • Long-lasting battery + TurboPower charging. Power through day after day with a 5200mAh battery, then get hours of power in just minutes.****
driver.get("https://example.com")
# Wait for the relevant page state before capturing.
driver.save_screenshot("page.png")

Replace the URL and add an explicit wait for the element or state that matters in your test. Ordinary WebDriver screenshot behavior should not be assumed to produce a full-page image in every browser and binding; check the target browser and binding if you need full-page output. Close the driver as part of normal test cleanup.

Retrieve screenshots from a completed LambdaTest session

If the Selenium test ran on LambdaTest and you want its session step screenshots afterward, use the session identifier with the vendor’s session screenshot endpoint. It requires Basic authentication and returns a URL for the screenshots in ZIP format. This retrieves artifacts from a session; it does not control when Selenium captures a screenshot during test execution. See the LambdaTest API documentation for the current session endpoint and authentication details.

Run URL-based screenshots across a browser matrix

For a URL-driven cross-browser run, the Automated Screenshot API takes a POST request containing the target URL, screen resolution fields, and a configs matrix of operating system, browser, and browser version. The vendor describes this service as capturing full-page screenshots of URLs through an API call to its cloud servers. This is separate from a Selenium test: you do not use WebDriver to navigate or interact with the page in this workflow. See the Automated Screenshot API guide.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Sale
Samsung Galaxy A17 5G Smart Phone 128GB US 1 Yr Manufacturer Warranty Black
  • YOUR CONTENT, SUPER SMOOTH: The ultra-clear 6.7" FHD+ Super AMOLED display of Galaxy A17 5G helps bring your content to life, whether you're scrolling through recipes or video chatting with loved ones.¹
  • LIVE FAST. CHARGE FASTER: Focus more on the moment and less on your battery percentage with Galaxy A17 5G. Super Fast Charging powers up your battery so you can get back to life sooner.²
  • MEMORIES MADE PICTURE PERFECT: Capture every angle in stunning clarity, from wide family photos to close-ups of friends, with the triple-lens camera on Galaxy A17 5G.
  • NEED MORE STORAGE? WE HAVE YOU COVERED: With an improved 2TB of expandable storage, Galaxy A17 5G makes it easy to keep cherished photos, videos and important files readily accessible whenever you need them.³
  • BUILT TO LAST: With an improved IP54 rating, Galaxy A17 5G is even more durable than before.⁴ It’s built to resist splashes and dust and comes with a stronger yet slimmer Gorilla Glass Victus front and Glass Fiber Reinforced Polymer back.

Set credentials and discover supported configurations

Store your LambdaTest username and access key as environment variables rather than putting credentials directly in source code. The API guide documents Basic authorization and provides endpoints to discover available OS/browser combinations and resolutions. Query those endpoints when you prepare a matrix: browser versions shown in documentation examples are examples, not a dependable current compatibility list.

Submit the screenshot request

Build the JSON request with the current configuration values returned by the vendor’s discovery endpoints, then POST it to the screenshot endpoint using Basic authentication. The guide’s required request fields include the URL, resolution fields, and configs. Its examples show the request format and endpoint; use those current vendor examples rather than copying old browser-version values into a production job.

Read results by test ID

Retain the test ID returned when you start a run. The result endpoint reports status and requested URL, along with records that identify the OS, browser, browser version, status, screenshot URL, thumbnail URL, activity ID, and resolution for each configuration. Use those fields to match an image to its exact matrix entry and to distinguish completed results from unsuccessful ones.

Rank #3
Samsung Galaxy A16 5G 128GB Cell Phone, Unlocked Android Smartphone, Large AMOLED Display, Durable Design, Super Fast Charging, Expandable Storage, US Version, 2025, Blue Black (Renewed)
  • Charger NOT Included, 6.7" Super AMOLED FHD+, 90Hz Refresh Rate, 385 ppi, 800 nits (HBM), 1080x2340px, 5000mAh Battery
  • 128GB, 4GB RAM, microSDXC, Exynos 1330 (5nm), Octa-Core, Mali-G68 MP2 or Mali-G57 MC2 GPU
  • Rear Camera: 50MP, f/1.8 (wide) + 5MP, f/2.2 (ultrawide) + 2MP, f/2.4 (macro), LED flash, panorama, HDR; Front Camera: 13MP, f/2.0, Android 14, up to 6 major Android upgrades, One UI 6.1
  • 3G: HSDPA 850/900/1700(AWS)/1900/2100; 4G LTE: 1/2/3/4/5/7/12/13/14/20/25/26/28/29/30/38/39/40/41/48/66/71, 5G: 2/5/25/41/66/71/77/78 SA/NSA/Sub6/mmWave - Nano-SIM + eSIM
  • US Model – Global Connectivity – Compatible with Most GSM Carriers like T-Mobile, AT&T, MetroPCS, etc. Will Also work with CDMA Carriers Such as Verizon, Straight Talk.

Optional API cases

  • Local application: include "tunnel": true in the request configuration when routing the screenshot job through the documented tunnel.
  • HTTP Basic Authentication on the page: provide the page’s username and password fields in the request as documented.
  • Callback handling: provide the callback URL field shown in the API guide if you want results routed to a callback.
  • Stop a running test: the guide documents a PUT request to stop a screenshot test while it is running. A stop attempt against an already completed session returns HTTP 404.

Use SmartUI for visual regression

Choose SmartUI when the goal is to compare repeatable snapshots across builds, rather than simply save an image. The Selenium Java guide describes creating a SmartUI project, configuring browsers and viewports, and calling SmartUISnapshot.smartuiSnapshot(driver, "<Screenshot Name>") after navigation. Use a stable snapshot name so the image can be matched to its baseline, then review builds and mismatches in the SmartUI project. The guide also describes selectors for including or excluding dynamic DOM content from comparison; these are SmartUI-specific capabilities, not ordinary WebDriver screenshot options. See the SmartUI Selenium Java guide.

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

The guide’s sample configuration names Chrome, Firefox, Safari, and Edge, but that example should not be treated as a current support guarantee. Check the live configuration options before fixing a browser matrix.

Or skip the browser setup

If you need a clean image of a URL rather than a Selenium-driven browser matrix, ScreenshotNeo offers a one-request screenshot API. Cookie banners are accepted and removed before capture, along with known consent platforms, newsletter popups, and chat widgets. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed; the response identifies the page verdict and billing status.

For example, this cURL request saves a WebP screenshot of Stripe; see the ScreenshotNeo API documentation for request options:

Rank #4
Sale
Samsung Galaxy A17 5G Smart Phone 128GB, US 1 Yr Manufacturer Warranty Blue
  • YOUR CONTENT, SUPER SMOOTH: The ultra-clear 6.7" FHD+ Super AMOLED display of Galaxy A17 5G helps bring your content to life, whether you're scrolling through recipes or video chatting with loved ones.¹
  • LIVE FAST. CHARGE FASTER: Focus more on the moment and less on your battery percentage with Galaxy A17 5G. Super Fast Charging powers up your battery so you can get back to life sooner.²
  • MEMORIES MADE PICTURE PERFECT: Capture every angle in stunning clarity, from wide family photos to close-ups of friends, with the triple-lens camera on Galaxy A17 5G.
  • NEED MORE STORAGE? WE HAVE YOU COVERED: With an improved 2TB of expandable storage, Galaxy A17 5G makes it easy to keep cherished photos, videos and important files readily accessible whenever you need them.³
  • BUILT TO LAST: With an improved IP54 rating, Galaxy A17 5G is even more durable than before.⁴ It’s built to resist splashes and dust and comes with a stronger yet slimmer Gorilla Glass Victus front and Glass Fiber Reinforced Polymer back.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

Python equivalent:

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)

Node.js equivalent:

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

ScreenshotNeo also provides an MCP server with 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 screenshots. Sign up for ScreenshotNeo free and get 1,000 screenshots a month with no card.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshooting and operating notes

The Selenium screenshot is blank or misses an element

The capture reflects the page state at the moment the method executes. Wait for the target element or application state rather than relying only on navigation completion; then capture. If the page depends on delayed content, make the wait specific to that content.

The image is not full-page

Do not assume a standard WebDriver screenshot is full-page across browsers and bindings. If full-page URL capture is the objective, use the documented Automated Screenshot API workflow or confirm that the specific browser/binding has a supported full-page method.

Best Value
Tracfone Motorola Moto G 2025, 64GB, Saphire Blue (Locked to
  • Carrier: This phone is locked to Tracfone, which means this device can only be used on the Tracfone wireless network. Tracfone plan required, activating is easy, just 3 steps.
  • DISPLAY: Immersive viewing on a 6.7-inch super-bright 120Hz display with powerful stereo speakers and Bass Boost for cinematic entertainment.
  • CAMERA SYSTEM: Advanced 50MP Quad Pixel camera captures sharp, detailed photos and videos in any lighting condition
  • PERFORMANCE: Lightning-fast 5G connectivity paired with a powerful processor and RAM Boost for smooth multitasking.
  • BATTERY LIFE: Long-lasting 5000mAh battery with TurboPower charging technology delivers hours of power in minutes.

The requested browser version is unavailable

Do not infer current availability from old examples. Query the vendor’s supported OS/browser combination endpoint and resolution endpoint, then construct the matrix from the returned options.

A stop request returns 404

The API guide notes that stopping a completed screenshot test returns 404. Check the test status first; only send a stop request while the test remains in progress.

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.

The API run cannot reach a local page

For a locally hosted application, include the documented "tunnel": true setting and configure the tunnel as required by the vendor. For an HTTP Basic Authentication-protected page, include the documented page credentials rather than assuming the cloud job shares your local browser’s login state.

Choosing for reliability and cost

Keep the execution model aligned with the artifact you need: WebDriver capture ties the image to a known point in a test; the URL API produces per-configuration records for a browser matrix; SmartUI organizes named images around baseline comparison. The cited implementation documentation does not establish a universal runtime, success rate, or per-screenshot price for these LambdaTest workflows, so check current account terms and API documentation before budgeting or setting timeouts.

Frequently Asked Questions

Does a LambdaTest session screenshot ZIP replace screenshots taken during a Selenium test?

No. It retrieves session step screenshots after execution; Selenium screenshot calls determine capture timing within the test.

Is SmartUI needed just to save a Selenium screenshot?

No. SmartUI is for named snapshots and visual baseline comparisons; WebDriver can save a current-context screenshot directly.

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

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