Short answer: Selenium 3’s Java screenshot interface can save a screenshot to a file, but a normal WebDriver screenshot call is not a cross-browser guarantee that the image will include the entire document. In Selenium 3.141.59, use TakesScreenshot.getScreenshotAs(OutputType.FILE), then inspect the saved image to confirm its coverage. The driver and browser determine whether the result is a full page, a window, a frame view, or another supported extent.
What “full-page screenshot” means in Selenium 3
A browser viewport is only the visible rectangle inside the browser window. A full-page screenshot is expected to include the document beyond that rectangle, including content farther down the page. These are different outcomes: a file can be a valid screenshot and still show only the current viewport or window.
The Selenium Java API documentation for version 3.141.59 describes screenshots as a best-effort capability. It gives a preference order of the entire page, the current window, the visible portion of the current frame, and then the complete display. That order is not a promise that every browser driver can capture the entire document. Your Selenium version, language binding, browser, and driver implementation all matter.
This article uses Java because the versioned Selenium 3.141.59 Java API documents the TakesScreenshot interface and OutputType.FILE. Do not assume that the same method signatures or full-page behavior are available in every Selenium 3 language binding.
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Clear out junk files and repair common Windows errorsFree Scan →#1 Best Overall
- Compatible with Nintendo Switch 2’s new GameChat mode
- Auto-Light Balance: RightLight boosts brightness by up to 50%, reducing shadows so you look your best—compared to previous-generation Logitech webcams (1)
- Privacy with a Slide: The integrated webcam cover makes it easy to get total, reliable privacy when you're not on a video call
- Built-In Mic: The built-in microphone lets others hear you clearly during video calls
- Easy Plug-And-Play: The Brio 101 works with most video calling platforms, including Microsoft Teams, Zoom and Google Meet—no hassle; it just works
Capture and save a screenshot in Java
The example below starts Chrome, opens a page, waits until its body is present, asks the driver for a screenshot, copies the returned file to a named path, and closes the browser. It uses Selenium 3.141.59 APIs. The wait only confirms that the body exists; it does not establish that every image, script, or asynchronous component has finished loading.
1. Add the Selenium 3 dependency
For a Maven project, add this dependency to pom.xml:
<dependency>n <groupId>org.seleniumhq.selenium</groupId>n <artifactId>selenium-java</artifactId>n <version>3.141.59</version>n</dependency>
You also need a compatible Chrome installation and ChromeDriver available to the program. Selenium 3.141.59 does not make an incompatible browser-driver pairing compatible; install and configure the driver version required by the Chrome version in your environment. This example assumes chromedriver can be found through the environment or Selenium’s configured driver path.
2. Use the screenshot interface and save the result
import java.io.File;nimport java.io.IOException;nimport java.nio.file.Files;nimport java.nio.file.Path;nimport java.nio.file.Paths;nimport java.nio.file.StandardCopyOption;nnimport org.openqa.selenium.By;nimport org.openqa.selenium.OutputType;nimport org.openqa.selenium.TakesScreenshot;nimport org.openqa.selenium.WebDriver;nimport org.openqa.selenium.chrome.ChromeDriver;nimport org.openqa.selenium.support.ui.ExpectedConditions;nimport org.openqa.selenium.support.ui.WebDriverWait;nnpublic class Selenium3Screenshot {n public static void main(String[] args) throws IOException {n WebDriver driver = new ChromeDriver();nn try {n driver.get("https://example.com");n new WebDriverWait(driver, 20).until(n ExpectedConditions.presenceOfElementLocated(By.tagName("body"))n );nn if (!(driver instanceof TakesScreenshot)) {n throw new IllegalStateException(n "This WebDriver does not support TakesScreenshot"n );n }nn File screenshot = ((TakesScreenshot) driver)n .getScreenshotAs(OutputType.FILE);n Path destination = Paths.get("selenium-shot.png");n Files.copy(screenshot.toPath(), destination,n StandardCopyOption.REPLACE_EXISTING);nn System.out.println("Saved screenshot to: " +n destination.toAbsolutePath());n } finally {n driver.quit();n }n }n}
Replace https://example.com with the page you need to capture. getScreenshotAs(OutputType.FILE) returns a file from the driver, and Files.copy places a copy at the destination, replacing an existing file with that name. The Java API documents this screenshot request as best effort; saving the file successfully does not prove that it covers the whole page.
3. Check the image rather than assuming it is full-page
Open the output and inspect the top, middle, and bottom of the document. Check its pixel dimensions in an image viewer or with your usual image-inspection tool, and compare the visible content with the page. A tall document is a useful clue, but dimensions alone do not prove that all meaningful page content was captured.
Rank #2
- Compatible with Nintendo Switch 2’s new GameChat mode
- Crisp HD 720p/30 fps video calls with diagonal 55° field of view and auto light correction. Compatible with popular platforms including Skype and Zoom.
- The built-in noise-reducing mic makes sure your voice comes across clearly up to 1.5 meters away, even if you’re in busy surroundings.
- C270’s RightLight 2 feature adjusts to lighting conditions, producing brighter, contrasted images to help you look good in all your conference calls.
- The adjustable universal clip lets you attach the camera securely to your screen or laptop, or fold the clip and set the webcam on a shelf. You’re always ready for your next video call.
If the result ends at the viewport, treat it as a viewport screenshot. Check the documentation for the exact browser and driver combination you run and look for a full-page capture mechanism supported by that combination. The generic Selenium 3 Java call does not provide a portable guarantee of full-document coverage.
Prepare the page before capturing it
Screenshot output reflects what the browser has rendered when the driver takes the image. A body-presence wait is a starting point, not a universal page-ready condition. For pages with dynamic content, decide what “ready” means for your test and wait for that condition before requesting the screenshot.
- Wait for a page-specific element: if the content you care about appears after a request or client-side update, wait for that element rather than only the document body.
- Account for lazy-loaded content: images or sections may be loaded only after they approach the viewport. If the page uses this behavior, inspect whether those regions actually loaded before treating the image as complete.
- Handle consent screens and overlays: a banner, modal, or chat panel can obscure page content. Decide whether the screenshot should show it or whether your test should dismiss it through the site’s normal UI.
- Keep the capture reproducible: use the same browser, driver, window configuration, page state, and readiness condition when comparing screenshots across runs.
These are preparation practices, not guarantees that Selenium 3 can capture a full document. If the document is longer than the result, page preparation alone does not change the screenshot extent supported by the driver.
Choose the right approach for your Selenium 3 setup
Before building a workaround, identify the exact combination you are testing: Selenium 3 version, language binding, browser, and driver. The answer may differ between combinations, so avoid treating a method documented for current Selenium or a particular browser as proof of support in Selenium 3.
| Approach | What it gives you | Important limit |
|---|---|---|
TakesScreenshot.getScreenshotAs(OutputType.FILE) |
A screenshot file through the Java Selenium 3 API. | The resulting extent depends on the driver and browser; full-page capture is not guaranteed. |
| A browser- or driver-specific full-page facility | Potentially a full-document capture when that exact implementation supports it. | Confirm its availability and behavior in documentation for your precise versions; the generic Java API reference does not establish universal support. |
| Scroll-and-stitch workaround | A possible way to assemble a tall image from multiple viewport captures. | No universal Selenium 3 recipe is established here. Sticky elements, changing content, lazy loading, overlap, and timing can create gaps or seams. |
When to use a scroll-and-stitch workaround
Use this only when a native full-page capture is unavailable and you can validate the result for your page. A workaround must scroll through the document, capture overlapping viewport images, and combine them. That introduces extra moving parts: a fixed header can appear in every segment; an animation or live feed can change between captures; a page may load new content as it scrolls; and a wrong overlap can leave repeated or missing rows. The available sources do not establish a single tested, cross-browser Selenium 3 implementation, so treat any such routine as project-specific rather than a guaranteed fix.
Rank #3
- 【Full HD 1080P Webcam】Powered by a 1080p FHD two-MP CMOS, the NexiGo N60 Webcam produces exceptionally sharp and clear videos at resolutions up to 1920 x 1080 with 30fps. The 3.6mm glass lens provides a crisp image at fixed distances and is optimized between 19.6 inches to 13 feet, making it ideal for almost any indoor use.
- 【Wide Compatibility】Works with USB 2.0/3.0, no additional drivers required. Ready to use in approximately one minute or less on any compatible device. Compatible with Mac OS X 10.7 and higher / Windows 7, 8, 10 & 11 / Android 4.0 or higher / Linux 2.6.24 / Chrome OS 29.0.1547 / Ubuntu Version 10.04 or above. Not compatible with XBOX/PS4/PS5.
- 【Built-in Noise-Cancelling Microphone】The built-in noise-canceling microphone reduces ambient noise to enhance the sound quality of your video. Great for Zoom / Facetime / Video Calling / OBS / Twitch / Facebook / YouTube / Conferencing / Gaming / Streaming / Recording / Online School.
- 【USB Webcam with Privacy Protection Cover】The privacy cover blocks the lens when the webcam is not in use. It's perfect to help provide security and peace of mind to anyone, from individuals to large companies. 【Note:】Please contact our support for firmware update if you have noticed any audio delays.
- 【Wide Compatibility】Works with USB 2.0/3.0, no additional drivers required. Ready to use in approximately one minute or less on any compatible device. Compatible with Mac OS X 10.7 and higher / Windows 7, 10 & 11, Pro / Android 4.0 or higher / Linux 2.6.24 / Chrome OS 29.0.1547 / Ubuntu Version 10.04 or above. Not compatible with XBOX/PS4/PS5.
Troubleshooting
The screenshot contains only the visible viewport
Cause: the driver returned a viewport or window capture rather than the entire document, which is allowed by the browser-dependent best-effort behavior.
Fix: verify the image, then consult documentation for the exact browser and driver combination for a full-page facility. If none is available, assess a scroll-and-stitch workaround against the page’s sticky elements and dynamic content.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
The saved file is missing or overwritten
Cause: the destination path may not be where you expected, or an existing file may have been replaced by the copy operation.
Fix: check the absolute path printed by the example. Change selenium-shot.png to a unique name when you need to keep earlier captures; the example deliberately uses REPLACE_EXISTING.
The screenshot is blank or misses late content
Cause: the page may not have rendered the relevant content when the screenshot request ran. Waiting for the body only confirms that the body element is present.
Fix: wait for a page-specific readiness condition and inspect whether the target content or lazy-loaded assets are present before capture. A longer fixed sleep may help diagnose a timing issue, but it is less precise than waiting for the state your page requires.
Recommended Free Tools
Rank #4
- 1080P Webcam with Cover for Video Calls - EMEET computer webcam provides design and Optimization for professional video streaming. Realistic 1920 x 1080p video, 5-layer anti-glare lens, providing smooth video. C960 computer camera delivers 1920x1080 video with fixed focus (11.8–118.1 inches), so as to provide a clearer image. C960 USB webcam has a cover and can be removed automatically to meet your needs for privacy. For optimal image performance, use the webcam in a well-lit environment.
- Built-in 2 Omnidirectional Mics - EMEET webcam with microphone for desktop features 2 built-in omnidirectional microphones, picking up your voice to create clear audio for communication. When installing the webcam, select EMEET C960 as the default microphone input device in your computer and video applications and select C960 as the default device in Zoom/Teams and ensure microphone permissions are enabled for proper use. Please note that C960 does not include built-in speakers.
- Automatic Light Adjustment - Automatic exposure adjustment is applied in EMEET HD webcam 1080p so that the streaming webcam can deliver stable image performance. EMEET C960 camera for computer also features color adjustment and exposure optimization to help you look your best. For optimal video quality, it is recommended to use the webcam in normal or well-lit environments and select suitable video settings in your application. Proper lighting helps achieve a clearer and more balanced image.
- Plug-and-Play & Upgraded USB Connectivity - New C960 webcam features both USB Type-A & A-to-C adapter connections for wider compatibility. For stable performance, connect the webcam directly to the computer's main USB port and ensure the device is recognized correctly. If a hub or docking station is used, please ensure it provides sufficient power and stable data transmission, as limited ports may affect performance. 90° wide-angle lens captures more participants without frequent adjustments.
- High Compatibility & Multi Application - C960 webcam for laptop is compatible with Windows 10/11, macOS 10.14+, and Android TV 7.0+. Not supported: Windows Hello, TVs, tablets, or game consoles. It works with Zoom, Teams, Facetime, Google Meet, YouTube and more. Please select C960 webcam as the default camera and microphone device in your application and ensure camera/microphone permissions are enabled, especially on macOS. (Tips: Incompatible with Windows Hello)
The program cannot start Chrome
Cause: the browser or driver is unavailable to the process, or their versions are incompatible.
Fix: install Chrome and a compatible ChromeDriver, make the driver discoverable through the environment or configure its location, and rerun. This is a browser setup issue, separate from whether the resulting screenshot is full-page.
The Java compiler cannot find Selenium classes
Cause: the Selenium dependency is absent from the project classpath or Maven has not resolved the declared dependency.
Fix: confirm the selenium-java dependency is in the project’s Maven configuration, refresh or build the project, and check that the import errors are resolved before debugging screenshot behavior.
Performance, reliability, and cost considerations
A single screenshot request is simpler than a stitching pipeline, but its reliability for full-document output depends on the browser-driver implementation. A stitching workflow requires multiple scrolls and captures, so it also creates more opportunities for page changes and timing differences. For repeatable testing, capture a stable page state and verify output coverage as part of the test rather than relying on a successful file write.
Best Value
- Compatible with Nintendo Switch 2’s new GameChat mode
- HD lighting adjustment and autofocus: The Logitech webcam automatically fine-tunes the lighting, producing bright, razor-sharp images even in low-light settings. This makes it a great webcam for streaming and an ideal web camera for laptop use
- Advanced capture software: Easily create and share video content with this Logitech camera that is suitable for use as a desktop computer camera or a monitor webcam
- Stereo audio with dual mics: Capture natural sound during calls and recorded videos with this 1080p webcam, great as a video conference camera or a computer webcam
- Full HD 1080p video calling and recording at 30 fps. You'll make a strong impression with this PC webcam that features crisp, clearly detailed, and vibrantly colored video
For automated suites, store screenshots only when they are useful for debugging or comparison, and use distinct output names if each run must be retained. Selenium itself is an open-source browser automation framework; any infrastructure cost depends on where and how you run the browser. This Selenium Java example does not add an API screenshot charge.
Or skip the browser setup
If your goal is to get an image of a URL without managing a Selenium browser and driver, ScreenshotNeo is a website screenshot API and MCP server. A single GET request can return a screenshot or PDF. Its clean-shot options accept cookie or consent banners and remove more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and responses indicate the page verdict and billing status.
Here is the one-call cURL example; replace YOUR_API_KEY with your key and change the target URL as needed. See the ScreenshotNeo API documentation for request options.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
ScreenshotNeo also provides an MCP server with 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. Sign up for ScreenshotNeo and start with 1,000 free screenshots a month, with no card required.
Frequently Asked Questions
Does Selenium 3.141.59 guarantee a full-document image when using the Java screenshot interface?
No. The Java API describes screenshot capture as best effort, with the resulting extent determined by the browser and driver.
Can current Selenium or Firefox full-page methods be assumed to work in Selenium 3?
No. Support documented for Selenium 4 or current Firefox APIs is version-specific and does not establish equivalent support in every Selenium 3 setup.
Quick Recap
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.




