Recommended Free Tools
Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.
Use Selenium’s Python WebDriver to open a page, call driver.save_screenshot("page.png"), check the returned boolean, and close the browser in a finally block. That captures the current browser window as a PNG. Selenium also supports screenshots as bytes or Base64 text, individual elements, and browser-specific full-page methods.
Install Selenium and prepare a browser
Create a virtual environment for a repeatable setup, then install the current Selenium package:
python -m venv .venv
# macOS/Linux
source .venv/bin/activate
# Windows PowerShell
.venvScriptsActivate.ps1
python -m pip install -U selenium
Recent Selenium Python releases invoke Selenium Manager when you do not provide a driver yourself. It detects the installed browser, resolves a compatible driver, downloads it when needed, and caches it. This works for most supported platforms, but proxies, restricted networks, unsupported operating systems, or missing browser libraries can still require manual driver and service configuration.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Use a supported browser installation (Chrome, Firefox, Edge, or another browser supported by your Selenium binding). For unattended jobs, run the browser headlessly and set a known window size so visual output is consistent.
#1 Best Overall
- 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
Basic website screenshot in Python
This complete script navigates, saves a PNG, reports an I/O failure, and always closes the WebDriver session:
from selenium import webdriver
URL = "https://example.com"
OUTPUT = "page.png"
options = webdriver.ChromeOptions()
options.add_argument("--headless=new")
options.add_argument("--window-size=1365,900")
driver = webdriver.Chrome(options=options)
try:
driver.get(URL)
saved = driver.save_screenshot(OUTPUT)
if not saved:
raise OSError(f"Could not save screenshot to {OUTPUT}")
print(f"Saved {OUTPUT}")
finally:
driver.quit()
save_screenshot(path) is Selenium’s concise alias for the file-saving screenshot method. It returns True after a successful write and False when the file operation encounters an I/O error. The destination directory must already exist and be writable; Selenium will not create a missing screenshots folder for you.
Create the output directory first
from pathlib import Path
from selenium import webdriver
out = Path("screenshots")
out.mkdir(parents=True, exist_ok=True)
driver = webdriver.Chrome()
try:
driver.get("https://example.com")
if not driver.save_screenshot(str(out / "example.png")):
raise OSError("Screenshot write failed")
finally:
driver.quit()
Wait for the page state you actually need
A screenshot is taken at the instant Selenium calls the method. Navigation completing does not guarantee that JavaScript-rendered content, fonts, images, or a consent dialog has finished. Prefer an explicit wait for a meaningful condition instead of an arbitrary long sleep:
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
options = webdriver.ChromeOptions()
options.add_argument("--headless=new")
options.add_argument("--window-size=1440,1000")
driver = webdriver.Chrome(options=options)
try:
driver.get("https://example.com/dashboard")
WebDriverWait(driver, 20).until(
EC.visibility_of_element_located((By.CSS_SELECTOR, "main"))
)
driver.save_screenshot("dashboard.png")
finally:
driver.quit()
For deterministic visual comparisons, keep the browser version, viewport, device scale, URL, login state, timezone, network conditions, and wait condition consistent between runs. If the site animates, wait for the animation to finish or hide it with injected CSS before capture.
Rank #2
- 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
Choose the right Selenium screenshot method
| Method | Output and scope | Use it when |
|---|---|---|
driver.save_screenshot(path) |
PNG file of the current window; returns a Boolean | You need a straightforward file artifact |
driver.get_screenshot_as_file(path) |
PNG file of the current window; returns True or False |
You prefer the explicitly named file API |
driver.get_screenshot_as_png() |
PNG bytes in memory | You will upload, hash, transform, or test the image without writing first |
driver.get_screenshot_as_base64() |
Base64-encoded screenshot text | You need to embed the image in HTML or send text through an API |
element.screenshot(path) |
PNG of one located WebElement | You need a component, chart, form, or card rather than the whole window |
| Firefox full-page methods | Browser/API-specific full-document capture | You have verified the Firefox binding and version support your target |
The ordinary WebDriver methods capture the current window, not automatically the complete scrollable document. Do not treat a viewport image as a full-page screenshot. Firefox’s Python API separately documents full-page methods such as get_full_page_screenshot_as_file; this is not a universal Chrome or cross-browser method.
Capture an element instead of the window
Locate the element after the page is ready, then save its image:
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
options = webdriver.ChromeOptions()
options.add_argument("--headless=new")
driver = webdriver.Chrome(options=options)
try:
driver.get("https://example.com/pricing")
card = WebDriverWait(driver, 15).until(
EC.visibility_of_element_located((By.CSS_SELECTOR, "[data-testid='pricing-card']"))
)
if not card.screenshot("pricing-card.png"):
raise OSError("Element screenshot could not be written")
finally:
driver.quit()
This produces the element image, including its rendered bounds, rather than a page or viewport capture. A missing selector, a hidden element, or an element outside a stable layout can cause the wait or capture to fail.
Free tools Windows power users keep installed
One-click scans. No signup required.
Save screenshots in memory
Use bytes when another library or an object-storage client should receive the image directly:
Rank #3
- 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.
from pathlib import Path
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument("--headless=new")
driver = webdriver.Chrome(options=options)
try:
driver.get("https://example.com")
png_bytes = driver.get_screenshot_as_png()
Path("page-from-bytes.png").write_bytes(png_bytes)
base64_text = driver.get_screenshot_as_base64()
print(f"Base64 characters: {len(base64_text)}")
finally:
driver.quit()
The Selenium Project documentation describes the WebDriver screenshot endpoint as returning a screenshot encoded in Base64. Decode that text only when your receiving system expects binary data.
Full-page, viewport, and sizing decisions
Consistent viewport captures
Set the window dimensions before navigation or capture:
driver.set_window_size(1365, 900)
driver.get("https://example.com")
driver.save_screenshot("viewport.png")
The resulting image represents the current window at that size. Responsive breakpoints can change menus, columns, and typography, so a small dimension change may produce a substantially different image.
Full-document captures
If you require the entire scrollable page, verify that your chosen browser and Selenium version expose a supported full-page method. Firefox’s Python API has dedicated full-page screenshot methods. For Chrome or cross-browser jobs, do not assume that save_screenshot stitches the document; use a browser-specific implementation or another capture service and test pages with lazy-loaded content, sticky headers, and very tall layouts.
Common failures and fixes
“Unable to obtain driver” or browser startup errors
- Confirm that the browser is installed and can launch manually.
- Allow Selenium Manager to reach its driver endpoints, or configure a compatible driver and Selenium
Serviceexplicitly in locked-down environments. - In containers, install the browser’s shared libraries and use the container’s recommended headless flags.
The file is missing or save_screenshot returns False
- Use an absolute path temporarily to see where the process is writing.
- Create the parent directory with
Path.mkdir. - Check permissions, disk space, and whether another process has locked the destination.
- Keep the Boolean check; a script that ignores it can report success without an image.
The screenshot is blank, incomplete, or shows a loading shell
- Wait for a visible application landmark, not merely for
driver.getto return. - Increase the explicit wait timeout for slow environments.
- Scroll through lazy-loaded sections before a full-document capture, then wait for images to appear.
- Check authentication, redirects, network errors, and content-security restrictions in the browser logs.
The wrong responsive layout appears
Set the window size explicitly and keep device scale and browser settings constant. A headless browser’s default viewport can differ from a headed run.
Rank #4
- 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
An element screenshot fails
Verify the CSS selector, wait for visibility, and ensure overlays are not covering the element. If the element is inside an iframe, switch into that frame before locating it.
Scaling captures responsibly
Always call quit() in finally, especially in loops; leaked browser processes consume memory and file descriptors. Reuse a driver for a batch when pages share the same session, but reset cookies or create isolated sessions when authentication and state must not leak between URLs. Name files with a URL-safe slug and timestamp, and record the URL, viewport, browser version, and wait condition beside each artifact so a visual difference can be reproduced.
Selenium itself does not provide a topic-specific speed or success guarantee. Capture time depends on browser startup, page resources, JavaScript, network latency, and your waits. Headless mode reduces display overhead but does not make a slow page fast. For larger workloads, Selenium’s official Getting Started material points to Grid for distributing execution across browsers and environments.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Or skip the browser setup
ScreenshotNeo provides a website screenshot API and MCP server when you want one HTTP request instead of installing and maintaining a browser. It accepts consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and each response reports the result through X-Page-Verdict and X-Billed headers.
Install nothing for this request:
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
Python:
import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
r.raise_for_status()
open("shot.webp", "wb").write(r.content)
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}`);
if (!res.ok) throw new Error(`Screenshot failed: ${res.status}`);
const fs = await import('node:fs/promises');
await fs.writeFile('shot.webp', Buffer.from(await res.arrayBuffer()));
See the parameter reference and response details in the ScreenshotNeo documentation. The service also supports full-page captures with lazy images, CSS-selector element captures, dark mode, device presets or custom viewports, retina scale, PDFs, custom CSS and JavaScript, clicks, selector or network-idle waits, request blocking, headers, cookies, user agents, authorization, timezone and geolocation, transparent backgrounds, resizing, configurable caching, signed links, asynchronous webhooks, bulk capture of up to 100 URLs per call, a usage API, and an OpenAPI specification. Its parameter names are compatible with those used by many screenshot APIs, easing migration.
Best Value
- 【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.
ScreenshotNeo includes an MCP server with take_screenshot, get_page_info, and capture_pdf tools for Claude, Cursor, and other MCP clients. Every feature is available on every plan: 1,000 screenshots per month free with no card, then $5 for 3,000, $15 for 15,000, $39 for 60,000, $99 for 250,000, or $249 for 1,000,000; yearly billing provides two months free. Create a free ScreenshotNeo account to start with the 1,000 included screenshots.
FAQ
Does Selenium save JPEG or WebP with save_screenshot?
The documented WebDriver file methods write PNG. Convert the PNG afterward if another format is required.
Can I take a screenshot before calling quit()?
Yes. Capture while the driver session is active, then quit it in cleanup code.
Why does a screenshot differ between my laptop and CI?
Browser versions, fonts, viewport dimensions, device scale, timezone, animations, and network timing can differ. Pin or record those inputs when pixel-level consistency matters.
Frequently Asked Questions
Does Selenium save JPEG or WebP with save_screenshot?
The documented WebDriver file methods write PNG. Convert the PNG afterward if another format is required.
The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Can I take a screenshot before calling quit()?
Yes. Capture while the driver session is active, then quit it in cleanup code.
Why does a screenshot differ between my laptop and CI?
Browser versions, fonts, viewport dimensions, device scale, timezone, animations, and network timing can differ. Pin or record those inputs when pixel-level consistency matters.
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.

