selenium-stealth is a Python package for Selenium-driven Chrome and Chromium sessions. To use it, install the package, create a Chrome WebDriver, call stealth(driver, ...), then navigate and close the session. Its configurable browser properties can support controlled, authorized testing, but they do not guarantee that a site will grant access or conceal your network identity.
What selenium-stealth does—and what it does not
The project describes selenium-stealth as a way to make Selenium automation less detectable, with implementation lineage from Puppeteer Extra Stealth. Its documented scope is Selenium with Chrome or Chromium, not every browser Selenium can automate.
Selenium itself lists broader browser support, including Chrome, Edge, Firefox, Safari, WebKitGTK, and WPEWebKit in its WebDriver documentation. The selenium-stealth package’s documented setup and options are specific to Chrome/Chromium, so do not assume its stealth() call applies to those other browsers.
The package README says it passes public bot tests and can help maintain a normal reCAPTCHA v3 score. Those are the maintainers’ claims: the README material does not provide an independent test protocol, sample size, or guarantee. Browser-property changes do not control IP address, network reputation, account history, or a site’s access policies. Use automation only where you are authorized to do so, and do not treat the package as a way to bypass access controls.
Recommended Free Tools
#1 Best Overall
- 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.
Install selenium-stealth and start Chrome
Use a current Python installation and install Selenium alongside the package. The package’s documented installation command is pip install selenium-stealth; installing both explicitly makes the setup clear:
python -m pip install selenium selenium-stealth
Save this as stealth_example.py and run it with python stealth_example.py. Selenium Manager generally handles browser and driver setup when webdriver.Chrome() is created on supported platforms, so a manually supplied executable path is not normally needed.
from selenium import webdriver
from selenium_stealth import stealth
options = webdriver.ChromeOptions()
driver = webdriver.Chrome(options=options)
try:
stealth(
driver,
languages=["en-US", "en"],
vendor="Google Inc.",
platform="Win32",
webgl_vendor="Intel Inc.",
renderer="Intel Iris OpenGL Engine",
fix_hairline=True,
)
driver.get("https://example.com")
print(driver.title)
finally:
driver.quit()
The configuration values above follow the package README’s example; they are not universal defaults and are not suitable for every computer. Match settings to the browser and host you are actually testing. This example illustrates the documented call sequence; it is not a claim that these values make a session indistinguishable from a human-operated browser.
Configure the documented stealth options
The README exposes these arguments to stealth(). Their presence means the caller can set a property or behavior; it does not establish that any chosen combination is authentic or effective against a particular detection system.
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallRank #2
- 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.
| Option | What it sets | Practical consideration |
|---|---|---|
user_agent |
The browser’s user-agent string. | Keep it consistent with the actual browser and operating environment you test. |
languages |
The language preferences exposed by the browser. | Use language values that fit the intended test locale. |
vendor |
The browser vendor property. | Changing one property in isolation can make a fingerprint less coherent. |
platform |
The platform property exposed to page scripts. | Do not use a platform value that contradicts the host configuration without a specific test reason. |
webgl_vendor |
The WebGL vendor value. | GPU and browser characteristics vary across machines. |
renderer |
The WebGL renderer value. | Choose values that correspond to the environment being simulated or tested. |
fix_hairline |
Enables the package’s hairline correction behavior. | The README example sets this to True; whether to use it depends on the test. |
run_on_insecure_origins |
Controls whether the package runs on insecure origins. | Use only when your test specifically needs this behavior; avoid broad changes to security assumptions. |
For arguments not needed in a test, omit them rather than copying example values indiscriminately. The package README is the authoritative place to verify current names and behavior before depending on a setting.
Driver management and version compatibility
Selenium Manager is integrated with Selenium and generally resolves browser and driver installation when a WebDriver is created on supported platforms. It can remove routine manual downloads from the workflow, but it is not a fix for every local configuration or compatibility problem. Selenium documents manual driver installation as an option when needed.
For Chrome, Selenium’s guidance is to match Chrome and ChromeDriver at the major-version level. A mismatch can cause session-creation or driver errors. Check the installed browser version and the driver version actually being used before debugging the stealth configuration.
The selenium-stealth README’s sample uses an explicit executable_path argument. Avoid blindly copying that older-looking pattern into a current Selenium script; first try Selenium Manager. If you must manage ChromeDriver manually, use a driver compatible with the installed Chrome major version and keep it updated.
Rank #3
- 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.
Use ChromeDriver safely
ChromeDriver controls a real browser and can expose local resources if operated carelessly. Chrome for Developers recommends current Chrome and ChromeDriver, a test account without sensitive local or network access, a protected environment such as a container or virtual machine, and blocking unauthorized remote connections. If you use Selenium Server or another third-party tool, protect its ports too.
- Run tests under a low-privilege account with no access to secrets or sensitive files.
- Use an isolated test machine, container, or virtual machine where practical.
- Do not expose ChromeDriver or Selenium Server to untrusted networks; restrict connections to the local test process or a trusted network.
- Keep Chrome and ChromeDriver current and compatible.
- Use test accounts and sites where you have permission to automate.
How selenium-stealth compares with other approaches
| Approach | Documented scope or change | What to consider |
|---|---|---|
| Plain Selenium | Selenium supports multiple browsers, including Chrome, Edge, Firefox, Safari, WebKitGTK, and WPEWebKit. | Prefer it when you need ordinary browser automation and do not need the package’s Chrome-specific configuration. |
selenium-stealth |
Documents configurable browser properties for Selenium Chrome/Chromium. | Its effectiveness statements are project claims, not independent guarantees in the cited documentation. |
undetected-chromedriver |
Its project describes an approach that patches ChromeDriver. | It is a different implementation approach, not a proven universal alternative. Its README also says it does not hide the user’s IP address and notes that data-center IP reputation can affect outcomes. |
Choose based on your legitimate test requirement, browser compatibility, maintenance needs, and safe operating environment. The available project documentation does not establish either stealth package as a universal winner.
Troubleshoot common setup problems
Chrome fails to start or the session cannot be created
Check that Chrome is installed and can run in the environment. Confirm that Selenium is current enough for your setup, then inspect the browser and ChromeDriver major versions. With Selenium Manager, review its driver resolution and network access; with a manually installed driver, verify that the executable is available and compatible.
ChromeDriver reports a version mismatch
Update ChromeDriver to match Chrome’s major version, or update Chrome and use a corresponding driver. Remove stale manually configured driver paths if Selenium Manager is intended to select the driver.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Fix the driver behind crashes, sound loss and screen glitches3Clear out junk files and repair common Windows errorsRank #4
- 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
ModuleNotFoundError: No module named 'selenium_stealth'
Install the package in the same Python environment that runs the script: python -m pip install selenium-stealth. If you use a virtual environment or IDE interpreter, activate or select that environment before installing.
The site still blocks or challenges the browser
A challenge is not proof that stealth() is misconfigured. Site decisions can depend on factors outside these browser properties, including network identity and the site’s own controls. Do not escalate into bypassing a site’s restrictions; use an approved test environment or request authorized access.
The session hangs or does not close cleanly
Put browser work inside a try/finally block and call driver.quit() in finally, as in the example. This closes the WebDriver session even if navigation or later test code raises an exception.
Or skip the browser setup
If your goal is to capture a website screenshot rather than run browser automation, ScreenshotNeo is a screenshot API and MCP server for developers. A single GET request returns a PNG, JPEG, WebP, or PDF. Its capture flow accepts cookie/consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets before the shot; each step can be turned off. Bot checks, 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 includes tools for AI agents: take_screenshot, get_page_info, and capture_pdf.
The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Install the Python dependency with python -m pip install requests, then use this runnable example with your API key. See the ScreenshotNeo documentation for parameters and response details.
Best Value
- 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.
import requests
r = requests.get(
"https://api.screenshotneo.com/v1/shot",
params={"access_key": "YOUR_API_KEY", "url": "https://example.com"},
timeout=90,
)
open("shot.webp", "wb").write(r.content)
ScreenshotNeo includes 1,000 screenshots per month free with no card; paid plans start at $5 for 3,000 screenshots. Sign up for a free ScreenshotNeo account.
Frequently Asked Questions
Does selenium-stealth work with Firefox?
The package documents support for Selenium Chrome and Chromium, not Firefox.
Does selenium-stealth hide my IP address?
No. Browser-property settings do not conceal network identity.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
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.

