DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon 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 Now×
Skip to content
Redmond desk5 min

How to Take a Website Screenshot with Selenium and ChromeDriver on Windows 11

A practical Windows 11 guide to capturing a website PNG with Selenium, including setup, ChromeDriver compatibility, waits, and troubleshooting.

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.

On Windows 11, install Selenium for Python, then use webdriver.Chrome() to open a page and driver.save_screenshot(path) to save a PNG of the current browser window. With modern Selenium, Selenium Manager usually handles ChromeDriver setup for you, so try the workflow below before downloading a driver manually.

Set up Selenium in Windows 11

Use PowerShell to create a project folder, make a virtual environment, activate it, and install Selenium. A virtual environment keeps this project’s Python packages separate from other projects.

As an Amazon Associate I earn from qualifying purchases.

  1. Open PowerShell and create and enter a working folder:

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

    mkdir selenium-screenshot
    cd selenium-screenshot

  2. Create and activate a virtual environment, then install Selenium:

    py -m venv .venv
    ..venvScriptsActivate.ps1
    python -m pip install -U selenium

If PowerShell blocks activation because of its execution policy, you can run the script using the virtual environment’s Python directly: ..venvScriptspython.exe -m pip install -U selenium, then use ..venvScriptspython.exe screenshot.py to run the script. These setup commands are standard Python guidance; they were not tested on a Windows 11 machine for this article.

Capture a website to a known PNG path

Save the following as screenshot.py. It writes the image to the current user’s Pictures folder, creates that folder if needed, checks whether Selenium reports a successful save, and closes the browser even if navigation or capture raises an error.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
from pathlib import Path
from selenium import webdriver

output = Path.home() / "Pictures" / "website.png"
output.parent.mkdir(parents=True, exist_ok=True)

driver = webdriver.Chrome()
try:
    driver.get("https://example.com")
    saved = driver.save_screenshot(str(output))
    if not saved:
        raise OSError(f"Could not save screenshot to {output}")
    print(f"Screenshot saved to {output}")
finally:
    driver.quit()

Change https://example.com to the page you want. To choose another destination, replace the output path, for example with Path.home() / "Desktop" / "website.png". Run the script from the activated environment:

python screenshot.py

webdriver.Chrome() starts Chrome, get() navigates to the URL, and save_screenshot() saves a PNG of the current window. Selenium’s examples use driver.quit() to end the session cleanly. See the Selenium WebDriver documentation and its driver setup guidance.

Rank #2
Dell Latitude 5420 14" FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
  • 256 GB SSD of storage.
  • Multitasking is easy with 16GB of RAM
  • Equipped with a blazing fast Core i5 2.00 GHz processor.

Wait for the content you need before capturing

Navigation completing does not guarantee that every site’s asynchronous content, images, or client-side updates have finished. For dynamic pages, wait for a meaningful element or state before calling save_screenshot(). Selenium supports explicit waits for conditions; select a condition that matches the page rather than relying on one fixed delay for every site.

The basic call captures the current browser window. It does not, by itself, promise to stitch a long document into a full-page image. If you only need one part of the page, Selenium also documents taking a screenshot of a specific element; that is distinct from capturing the whole document.

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

Do you need to install ChromeDriver manually?

Usually, no: start with webdriver.Chrome(). Selenium Manager can resolve and manage the browser driver in most supported environments. If automatic startup fails, or your organization requires a separately managed driver, check which Chrome version is installed and use a ChromeDriver with the corresponding major version. Selenium’s Chrome guidance says, “By default, Selenium 4 is compatible with Chrome v75 and greater,” and also says Chrome and ChromeDriver major versions should match. Treat that as general compatibility guidance, not a substitute for checking the actual release.

For a manually managed driver, use Google’s Chrome for Testing availability and version-selection information to find the appropriate release for your Chrome version. Selenium’s Chrome-specific documentation covers its Chrome support and driver guidance.

Choose the screenshot scope

Need Approach What it captures
What is visible in the browser window driver.save_screenshot(path) A PNG of the current window; not documented as automatic full-page stitching.
One particular page element Locate the element and use its screenshot operation. The selected element rather than the browser window.

See Selenium’s screenshot documentation for current-window and element screenshot operations.

Rank #3

Troubleshoot startup and saved-file problems

  • Chrome will not start or driver startup raises an exception: Check the complete exception text and the installed Chrome version. Try Selenium Manager first. If you installed chromedriver.exe yourself, verify that its major version matches Chrome and consult Google’s version-selection guidance.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Driver setup cannot download or resolve a driver: A proxy, firewall, or network policy may prevent driver downloads. Check whether the environment permits Selenium Manager’s required network access; if not, arrange a compatible driver through your organization’s approved process.

  • The script says it saved the screenshot, but you cannot find it: The example uses the current Windows user’s home directory. Read the printed full path, then confirm that the account running Python can write to that folder.

  • The file is missing or the save check fails: Confirm the destination is writable and that its parent directory exists. The example creates the parent folder and raises an error if Selenium returns False.

  • The screenshot is blank or misses content: Check that the target URL loaded and that the page reached the state you intended to capture. For pages with delayed content, wait for a relevant element or condition before taking the screenshot.

    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.
    Rank #4
    Windows 11 Laptop with i3 Processor 15.6" Work Laptop for College Students | Backlit Keyboard WiFi 6 (2 cores, 4 Threads, up to 3.4GHz) 12GB RAM 256GB SSD TF Card Expandable to 2TB
    • 【Efficient Performance】 Powered by Intel Core i3 processor (2 cores, 4 threads, up to 3.4GHz) with 12GB RAM and 256GB SSD. Handles multitasking, office software, online classes, and HD video streaming smoothly. Integrated Intel UHD Graphics 620
    • Backlit Keyboard & Complete Package】Comes with a cool backlit keyboard. Comes with awebcam, dual stereo speakers (8Ω/1.0W each), DC charger, and user manual – ready for late-night studying, online classes, video conferencing, and daily productivity
    • 【Vibrant Display】 15.6-inch Full HD (1920x1080) anti-glare screen with 16:9 aspect ratio delivers crisp images and vivid colors – perfect for studying, watching lectures, or entertainment. Thin-bezel design maximizes viewing area
    • 【Fast Connectivity & Expansion】 Equipped with WiFi 6 (802.11ax) and Bluetooth 5.2 for stable, high-speed wireless. Features 3 x USB 3.0, HDMI 2.1, Type-C (supports PD3.0 fast charging), and a TF card slot expandable up to 2TB – easily connect external monitors, mice, drives, or expand storage for all your files
    • 【Long Battery Life & Portable】 Built-in 11.55V 5000mAh/57.75Wh high-capacity battery delivers approximately 7 hours of mixed-use battery life – enough for a full day of classes and assignments. Lightweight at just 1.63kg (3.6 lbs) and 19.5mm thin, plus a compact packing size – easily slips into a backpack for campus, library, or coffee shop

When diagnosing an unresolved error, record the Selenium package version, Chrome version, any separately installed ChromeDriver version, the full exception text, network or proxy restrictions, and whether the output path is writable. The exact Windows 11 script above has not been independently tested on a Windows host.

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 endpoint rather than a local Selenium session, ScreenshotNeo is a website screenshot API and MCP server for developers. A single GET request can return a PNG, JPEG, WebP, or PDF. 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://example.com -o shot.webp

ScreenshotNeo accepts cookie and consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each of those steps can be turned off. Bot checks and CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and responses report the page verdict and billing status in headers. Its MCP server provides take_screenshot, get_page_info, and capture_pdf tools for AI agents, including 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 screenshots; all listed plans include every feature, and yearly billing gives two months free.

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

Sign up for ScreenshotNeo’s free plan: 1,000 screenshots a month, no card required.

Frequently Asked Questions

Does this script save a full-page screenshot?

No. The basic Selenium call captures the current browser window; it is not documented as stitching the full page into one image.

What should I use if I only need one element?

Use Selenium’s element screenshot operation after locating the element you want to capture.

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.

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

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
Outdated Drivers Are Slowing You DownFree scan - exact matches
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.