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.

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

There is no single flag that fixes every WebDriverException. It is Selenium’s broad base exception: the full error message, traceback, and failing line tell you whether Chrome failed to create a session or a browser command failed after startup. First separate those cases, then check browser/driver compatibility, executable access, headless configuration, and—if Chrome did start—page state and synchronization.

How do I fix WebDriverException with headless Chrome in Python Selenium?

Start by saving the complete exception and traceback. Note whether it occurs on webdriver.Chrome(...) or later on a call such as driver.get(...), an element lookup, or a click. A failure during driver construction usually points toward session creation: version compatibility, binary paths, driver access, or operating-system restrictions. A failure after construction needs to be traced to the specific browser command and page state.

WebDriverException is a broad exception, not a diagnosis. Selenium’s Python API defines SessionNotCreatedException separately for session creation failures. The exact message and traceback are therefore more useful than labeling every failure “headless Chrome not working.” See the Selenium Python exceptions API and Selenium troubleshooting guide.

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

Record the evidence before changing settings

  • Copy the full exception text and traceback, including the last line and the line of your own code that raised it.
  • Record Python, Selenium, Chrome, and ChromeDriver versions, plus the operating system or container image.
  • Record the Chrome options and any custom Chrome or driver paths.
  • Identify whether the exception happened while creating webdriver.Chrome or after that call returned successfully.

Changing several flags at once can obscure the cause. Work through one diagnostic branch at a time and retain the original error and logs.

#1 Best Overall
HP OmniBook 3 17.3 inch Laptop PC, FHD Display, AMD Ryzen 3 30, 8 GB RAM, 512 GB SSD, AMD Radeon 610M Graphics, Windows 11 Home, Mica Silver, 17-dp0199nr
  • FULL HD IPS DISPLAY - Enjoy vibrant, crystal-clear images with 178-degree wide-viewing angles
  • AMD RYZEN 3 30 PROCESSOR - Everyday performance you can count on; Multitask, stream, game casually, and edit photos smoothly with responsive power and vibrant HDR visuals
  • ENJOY UP TO 14 HOURS AND 15 MINUTES OF BATTERY LIFE - HP Fast Charge restores battery from 0 to 50% in approximately 45 minutes
  • AMD RADEON 610M GRAPHICS - Experience smooth entertainment; Built for streaming and multitasking, enjoy realistic visuals and efficient performance for work and play
  • STORAGE AND MEMORY - 512 GB PCIe NVMe M.2 SSD offers fast speed and efficient storage; and 8 GB LPDDR5 RAM memory boosts performance with higher bandwidth

Fix session creation errors first

If the traceback points to webdriver.Chrome(...) and the session never starts, validate the browser-driver pair and the executables before experimenting with unrelated Chrome flags. Selenium’s common errors guide identifies incompatible versions, system restrictions, and missing, inaccessible, or non-executable drivers as possible causes.

Match Chrome and ChromeDriver versions

For current Chrome automation, Chrome and ChromeDriver should have matching major versions. This matters especially when Chrome is supplied by a system package or CI/container image: the driver discovered on PATH may not have been updated with the browser.

Since Chrome milestone 115, ChromeDriver releases are integrated with Chrome releases. The official ChromeDriver version-selection guidance points to Chrome for Testing releases and JSON endpoints for paired release and version information. Confirm the actual installed browser version and the driver Selenium is launching rather than relying on an old separately downloaded driver.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
HP 14" HD Chromebook Laptop for Students, Intel Quad-Core N4120(> N4020), 4GB RAM, 64GB eMMC, WiFi, Webcam, HDMI, USB-A&C, 14 Hours Battery Life, Zoom, Chrome OS, CUE Accessories
  • Intel Celeron N4120: 4 Cores & Threads, 1.1GHz Base Clock, Up to 2.6GHz Boost Clock, 4MB Cache, Intel UHD Graphics 600. The perfect combination of performance, power consumption, and value helps your device handle multitasking smoothly and reliably with four processing cores to divide up the work.
  • 14" HD Display: 14.0-inch diagonal, HD (1366 x 768), micro-edge, anti-glare. See your digital world in a whole new way. Enjoy movies and photos with the great image quality and high-definition detail of 1 million pixels.
  • Memory & Storage: 4 GB LPDDR4x & 64 GB eMMC Storage. Adequate high-bandwidth RAM to smoothly run multiple applications and browser tabs all at once. An embedded multimedia card provides reliable flash-based storage.
  • Ports:2 x USB 3.0 Type-A,1 x USB 3.0 Type-C,1 x HDMI,1 x Headphone Jack
  • Chrome OS: Chromebook is a computer for the way the modern world works, with thousands of apps. Enjoy the seamless simplicity that comes with Google Chrome and Android apps, all integrated into one laptop. It’s fast, simple, and secure.

Let Selenium Manager resolve the driver, or specify it deliberately

Selenium 4.6 and later includes Selenium Manager, which can obtain a needed driver in supported environments. If you use an older Selenium installation, a managed environment that blocks downloads, or a custom browser/driver installation, check that the intended driver is on PATH or configure its exact location with Selenium’s Service object. The official driver installation guidance describes the available route.

For a browser installed somewhere other than Selenium’s default location, Chrome options support setting the browser binary. Do not set a custom path unless you have confirmed that it exists and is the browser you mean to launch. Selenium’s Chrome documentation covers browser options and service configuration.

Check file access and operating-system restrictions

  • Verify that Chrome and ChromeDriver exist at the configured paths.
  • Confirm the driver is executable by the account running Python.
  • Check that process restrictions or system policy are not preventing Chrome from starting.
  • In Linux and containers, use the actual Chrome/ChromeDriver error output to investigate missing libraries, permissions, sandboxing, or resource limits.

Do not apply --no-sandbox or shared-memory workarounds automatically. The symptom alone does not establish that either is appropriate; use the logged failure to identify the environmental cause and choose a targeted fix.

Rank #3
Sale
AKCHART 15.6'' AI Laptop with Office 365 12GB RAM 256GB SSD Win 11 Laptops
  • Stunning 15.6" FHD IPS Display: Experience crisp 1920x1080 resolution on this 15.6 inch laptop with an IPS panel that delivers wide viewing angles and vivid colors. The narrow-bezel design maximizes screen real estate for comfortable viewing on this Win 11 laptop, whether you're studying or working.
  • Celeron J4105 Processor & 256GB SSD: Powered by a reliable Celeron J4105 processor paired with 12GB DDR4 memory and a fast 256GB M.2 SSD. This laptop computer supports SSD expansion up to 2TB and TF card expansion up to 1TB, so your storage grows with your needs. Delivers smooth multitasking for daily productivity.
  • AI-Powered Win 11 Laptop: Built-in AI features enhance your productivity with smart assistance for writing, summarizing, and task management. Pre-installed with Win 11 and includes Office 365 subscription. This student laptop is backed by 1-year warranty and 24/7 customer support.
  • All-Day 7000mAh Battery & 180° Hinge: The high-capacity 7000mAh battery keeps this laptop powered through long classes or meetings. The 180-degree lay-flat hinge lets you share your screen effortlessly during presentations. This durable laptop computer adapts to your dynamic workflow.
  • Versatile Connectivity Hub: Equipped with USB 3.2, Type-C, Mini HDMI, and 3.5mm audio jack to connect all your peripherals. Stay online anywhere with high-speed 5G WiFi and Bluetooth 4.2. This college laptop keeps you connected at home, in the library, or on the go.

Use a supported headless Chrome configuration

For modern Chrome, add --headless through ChromeOptions. Chrome’s updated headless implementation arrived in Chrome 112. Since Chrome 132, the old headless implementation is distributed separately as the chrome-headless-shell binary. Current Chrome guidance supports --headless; use the modern mode unless your environment specifically requires legacy behavior. See Chrome Headless documentation and the Chrome announcement about removing old headless from Chrome.

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

This minimal script uses current Python Selenium syntax:

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument("--headless")
driver = webdriver.Chrome(options=options)

try:
    driver.get("https://example.com")
    print(driver.title)
finally:
    driver.quit()

Use options.add_argument(...) rather than the removed options.headless = True pattern. Selenium’s AI-agent guidance describes the current argument-based approach. If a specific older environment requires it, Selenium’s Chrome documentation also lists --headless=new; do not treat it as a universal cure for version or startup problems.

Rank #4
HP Essential Laptop 2026, Intel CPU, 128GB Storage, Office 365, Windows 11
  • Efficient Performance for Everyday Computing: Powered by Intel N150 processor with up to 3.6 GHz Intel Turbo Boost Technology, 6 MB L3 cache, 4 cores, and 4 threads, this HP laptop delivers responsive performance for web browsing, streaming, document editing, and multitasking. Paired with 4GB LPDDR5 RAM and 128GB UFS storage, it handles daily tasks smoothly. Includes 1-year Microsoft 365 Personal subscription for Word, Excel, PowerPoint, and cloud storage to maximize your productivity.
  • 14-Inch HD Micro-Edge Display:Enjoy clear visuals on the 14-inch HD (1366 x 768) anti-glare screen with 250-nit brightness and 62.5% sRGB coverage. The micro-edge bezel delivers a 79% screen-to-body ratio in a compact design. An HP True Vision 720p HD camera with noise reduction and dual-array microphones supports clear video calls, remote work, and online learning.
  • Modern Connectivity and Wireless Technology: Stay connected with Wi-Fi 6 (2x2) for faster wireless speeds and Bluetooth 5.4 for seamless pairing with accessories. Versatile port selection includes 1 USB Type-C 10Gbps with DisplayPort 1.2 for external displays, 2 USB Type-A 5Gbps ports for peripherals, 1 HDMI 1.4b port, 1 headphone/microphone combo jack, and 1 multi-format SD media card reader. Connect monitors, transfer files quickly, and expand your workspace with ease.
  • All-Day Battery Life and Portable Design: Enjoy up to 11 hours of video playback, 7.5 hours of mixed usage, or 7.5 hours of wireless streaming on a single charge, perfect for students and professionals on the go. Weighing just 3.24 lb and measuring 12.76" x 8.86" x 0.71", this lightweight laptop fits easily in backpacks and bags. The stylish willow green top cover with matte finish and natural silver keyboard deck with vertical brushing pattern offer a modern, professional look.
  • AI-Enhanced Productivity: Access Microsoft Copilot instantly with the dedicated Copilot key for faster assistance. AI Noise Reduction filters background sounds and improves voice clarity during calls. Dual speakers provide clear audio, while the full-size natural silver keyboard and HP Imagepad support comfortable typing and navigation.

Enable ChromeDriver logs when startup still fails

When version, path, and access checks do not explain a startup failure, collect ChromeDriver output. Selenium’s Chrome documentation shows webdriver.ChromeService(log_output=...) for Selenium 4.11 and later; the Python Service API documents a path or stream for log_output. Preserve the log alongside the traceback so that the failing startup stage is visible.

from selenium import webdriver
from selenium.webdriver.chrome.service import Service

options = webdriver.ChromeOptions()
options.add_argument("--headless")
service = Service(log_output="chromedriver.log")
driver = webdriver.Chrome(service=service, options=options)

try:
    driver.get("https://example.com")
    print(driver.title)
finally:
    driver.quit()

If you need an explicit driver executable, set it with Service(executable_path="/path/to/chromedriver"), replacing the path with the verified local path. Otherwise, use Selenium Manager where supported instead of pinning a stale executable. References: Chrome logging guidance, the Python Chrome Service API, and driver installation guidance.

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

If Chrome starts, troubleshoot the failing command

If webdriver.Chrome(...) returned a driver and a later command fails, focus on that command instead of changing startup flags. Selenium’s official troubleshooting page says, “The most common Selenium-related error is a result of poor synchronization.” Use waits when page content or an element is not immediately ready.

Best Value
Sale
jumper 15.6" FHD Laptop, 12GB RAM 256GB Storage Expandable to 512GB
  • Efficient Intel Processor: Powered by Intel Celeron 5205U dual-core two-thread processor with a fixed 1.9GHz base frequency, 2MB Intel Smart Cache and advanced 14nm Comet Lake lithography. Integrated Intel UHD Graphics for 10th Gen Intel Processors delivers stable daily performance. It handles daily office tasks, web browsing, video streaming and light multitasking smoothly while featuring ultra-low power consumption for extended use.
  • Fast Response Large Storage:Equipped with 12GB high-speed RAM to accelerate program loading and enable seamless multitasking. Built-in 256GB solid-state drive provides rapid boot and application launch speeds, offering ample storage space for your documents, software, photos and videos. Run daily productivity and multimedia applications without lag or slowdowns.
  • 15.6" FHD IPS Eye-Care Display:This laptop features a 15.6-inch Full HD IPS panel with native 1920×1080 resolution and classic 16:9 widescreen ratio. Designed with slim 5mm ultra-narrow bezels, anti-glare coating and blue light filtering eye protection, it effectively reduces eye strain during long hours of studying, streaming or working, delivering vivid, immersive visual experiences. effectively reduce blue light and eye strain, bringing you immersive visual experience for watching videos and studying.
  • Pre‑Installed Windows 11: Ready to Use Comes with a genuine Windows 11 system pre‑loaded, offering a clean, intuitive interface and broad software compatibility. Open the box, power on, and you're all set for school assignments, business reports, or daily computing needs.
  • Rich Ports & Long Lasting Battery Life:Built-in 38Wh rechargeable battery and dual stereo speakers. Support Bluetooth 4.2 & 2.4G/5G dual-band WiFi for fast wireless connection. Equipped with Type-C, HDMI, 3.5mm audio jack, dual USB 3.0, Micro TF slot and DC charging port, meet your daily external device connection and office expansion needs.

Check navigation and page state

  • Confirm the requested page loaded and inspect the current URL, title, or page source where useful.
  • Verify that the locator still matches the page and that the element is present in the current document.
  • For content that appears asynchronously, wait for the expected condition rather than assuming it exists immediately.
  • Read the traceback to identify whether the failure arose during navigation, lookup, or interaction.

For example, an element lookup can fail because the element has not appeared yet, because the locator is wrong, or because the page differs from the one expected. Selenium’s common errors guide explains these cases; the broader troubleshooting guide recommends waits for synchronization issues. Trying another browser can also help isolate whether the problem is specific to the driver/browser combination.

Common error patterns and targeted fixes

What you see Likely diagnostic branch What to check next
SessionNotCreatedException while creating the driver Session startup failed; the exception type alone does not name the cause. Compare Chrome and ChromeDriver major versions, confirm binary paths and driver execution access, then inspect ChromeDriver logs.
“Chrome failed to start: crashed” during driver creation Chrome exited or could not initialize; a headless flag is not necessarily the cause. Read ChromeDriver output and check the browser binary, system restrictions, permissions, and environment-specific dependencies.
Driver executable not found or cannot execute The configured path, PATH, or permissions do not provide an accessible driver. Verify the file and execution permissions; use Selenium Manager where supported or provide the correct Service path.
Exception from get, lookup, or interaction after session creation The session exists; investigate navigation, page state, selector accuracy, and synchronization. Follow the traceback to the command, verify the page and locator, and wait for the needed condition.

When local WebDriver is the wrong fit

Local WebDriver is the straightforward choice when you control the browser, driver, and operating environment and need direct control over installed versions. Remote WebDriver or hosted browser testing is worth considering when you need remote execution or a controlled browser environment. Compare supported browser and version coverage, operating-system coverage, integration, reproducibility, diagnostics, and cost before selecting a service. Selenium documents Remote WebDriver sessions; that documentation does not establish vendor pricing or make a provider comparison.

Or skip the browser setup

If your goal is a screenshot rather than browser automation, ScreenshotNeo is a website screenshot API and MCP server: one GET request returns a PNG, JPEG, WebP, or PDF. It accepts cookie/consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each cleanup step can be turned off. Bot checks/CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and response headers report the page verdict and billing status. Its MCP server provides take_screenshot, get_page_info, and capture_pdf for Claude, Cursor, and other MCP clients.

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

Here is the one-call cURL example; see the ScreenshotNeo API documentation for options and setup:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

1,000 screenshots a month are free with no card; paid plans start at $5 for 3,000. Sign up for ScreenshotNeo’s free plan.

Frequently Asked Questions

Which Selenium exception means session creation failed?

SessionNotCreatedException is the distinct session-creation exception in Selenium’s Python API; read its full message and traceback to find the cause.

Does headless mode require a special ChromeDriver?

Headless mode is selected with Chrome options, but Chrome and ChromeDriver still need compatible versions. Current Chrome supports the modern --headless mode.

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.