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.

There is no single “headless Chrome fix” for WebDriverException. It is Selenium’s broad WebDriver base exception. The useful diagnosis comes from the complete message and traceback, the line that raised it, and whether the failure happened while creating webdriver.Chrome() or after Chrome had already started. A session-creation error usually points to browser/driver compatibility, executable paths, permissions, or operating-system restrictions. An error from get(), element lookup, or an interaction usually requires a page-state, selector, or synchronization fix.

Use the sequence below to identify the failing layer before changing Chrome flags. It covers current headless configuration, ChromeDriver management, logging, container considerations, waits, and alternatives when local WebDriver is not repeatable.

Start with the exact exception and failing line

Save the entire exception text and Python traceback. Do not reduce every failure to “Selenium headless Chrome is not working.” First classify the failure:

  • During session creation: the exception is raised by webdriver.Chrome(...). Look first at Chrome/ChromeDriver versions, binary locations, executable access, and operating-system restrictions.
  • After startup: Chrome launches, but a later call such as driver.get(), find_element(), a click, or a script fails. Investigate page loading, synchronization, selectors, and the command named in the traceback.

SessionNotCreatedException is a distinct session-creation exception in Selenium’s Python API, while WebDriverException is the wider base class. Read the exact exception definitions in the Selenium Python exceptions API and compare them with the general Selenium troubleshooting guidance.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#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

Record these details before changing anything:

  • Python and Selenium versions.
  • Chrome version and the ChromeDriver version actually being used.
  • Operating system, container image, and CPU architecture.
  • The Chrome options and any custom binary or driver paths.
  • The exact line that raises the exception.

Check Chrome and ChromeDriver compatibility

For current Chrome automation, the browser and ChromeDriver major versions should match. A driver found on PATH may belong to an older package even when the browser was updated by an operating-system repository or CI image.

Chrome 115 and later

From Chrome milestone 115 onward, ChromeDriver releases are integrated with Chrome releases. The official ChromeDriver version-selection documentation directs users to Chrome for Testing releases and their JSON endpoints for paired browser and driver versions. Use those endpoints or your image’s documented package source rather than guessing a download URL.

Older installations and managed images

If Chrome is supplied by an OS package, verify the driver package was updated at the same time. In a custom installation, find the browser executable and the driver executable explicitly, then confirm both are readable and executable by the account running the test. Selenium’s common-errors guide lists incompatibility, system restrictions, and missing, inaccessible, or non-executable drivers among session-creation causes.

Let Selenium Manager resolve the driver

Selenium 4.6 and newer includes Selenium Manager, which can obtain a needed driver in supported environments. The normal path is:

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

driver = webdriver.Chrome()

If your environment blocks downloads, uses a custom browser build, or requires a pinned executable, use an explicit Service path instead of assuming Selenium Manager can reach or identify it.

Use the current headless Chrome configuration

Chrome’s supported headless mode is enabled with --headless. A minimal Python Selenium session is:

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.
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()

Chrome’s headless documentation identifies Selenium WebDriver as a supported automation route. Selenium’s Chrome documentation also lists --headless=new; current Chrome guidance treats --headless (or that equivalent form) as modern headless mode. Prefer the uncomplicated --headless argument unless a target environment requires a particular legacy behavior.

The old implementation is no longer bundled in the regular Chrome binary beginning with Chrome 132; it is distributed as the separate chrome-headless-shell binary. See Google’s headless removal announcement if you depend on that legacy implementation. Do not mix a legacy binary with an unrelated ChromeDriver version.

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

Use options.add_argument("--headless") (or --headless=new) rather than the removed options.headless = True pattern. Selenium’s current guidance demonstrates the argument-based configuration.

Verify binary paths, permissions, and operating-system restrictions

When the traceback says the session could not be created, check the environment rather than adding flags at random:

  1. Confirm the Chrome binary exists at the path your service or package manager provides.
  2. Confirm ChromeDriver exists, is executable, and can be launched by the same user as the Python process.
  3. Check that the driver is not blocked by file permissions, endpoint security, code-signing policy, or an execution restriction.
  4. Check that the process can create its temporary profile and communicate with the driver’s local port.
  5. Read the ChromeDriver output for the first concrete failure, such as an exited browser, inaccessible path, or rejected session command.

Linux containers often fail because of image libraries, user permissions, sandbox policy, or resource limits. The cited Selenium material does not establish one universal Linux flag recipe, so do not automatically add --no-sandbox or shared-memory workarounds. Apply a change only when the actual error or your container policy supports it, and document the security trade-off.

Turn on ChromeDriver logging

Startup logs distinguish a wrong path from a browser crash or a protocol/session problem. Selenium 4.11 and later can send ChromeDriver output to a file through the Python Service object:

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.
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.
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")
finally:
    driver.quit()

The Selenium Chrome documentation shows this logging approach, and the Python Service API documents log_output as a path or stream. If you need a pinned driver, provide its executable path to Service(executable_path=...); otherwise leave the path unset so Selenium Manager can work.

If Chrome starts, debug the command after startup

A successful browser process does not prove that the next command can succeed. Follow the traceback to the first failing WebDriver call.

Navigation failures

For a failure at driver.get(url), verify the URL, DNS and network access from the same machine or container, TLS interception, proxy configuration, and whether the page redirects to a login or bot-check screen. Capture the current URL and title before making assumptions about the page you expected.

Element lookup failures

A missing element may not yet exist, may be inside a frame or shadow root, or may have moved since the locator was written. Confirm the page has loaded and that the selector matches the current markup. Selenium’s error guidance explains that no-such-element failures commonly mean the element has not appeared yet or the locator/page is wrong.

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

Synchronization and explicit waits

Selenium’s official troubleshooting page states: “The most common Selenium-related error is a result of poor synchronization.” Replace fixed sleeps with an explicit wait for the state you need:

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")
driver = webdriver.Chrome(options=options)

try:
    driver.get("https://example.com")
    heading = WebDriverWait(driver, 15).until(
        EC.visibility_of_element_located((By.TAG_NAME, "h1"))
    )
    print(heading.text)
finally:
    driver.quit()

Wait for visibility, presence, clickability, a URL change, or another observable condition instead of assuming a fixed delay works on every run. The general troubleshooting guide recommends waits for synchronization 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.

Use another browser as an isolation test

Selenium recommends trying another browser when diagnosing a problem. If the same locator and wait fail in multiple browsers, investigate page state or test code first. If only Chrome fails, return to ChromeDriver logs, binary compatibility, and Chrome-specific configuration.

Complete diagnostic script

This script records versions, enables headless mode, writes driver logs, and preserves a useful traceback without hiding the original exception:

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

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

print("Python:", sys.version)
print("Selenium:", selenium.__version__)
print("OS:", platform.platform())

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

driver = None
try:
    driver = webdriver.Chrome(service=service, options=options)
    print("Session started")
    driver.get("https://example.com")
    print("Title:", driver.title)
except Exception:
    traceback.print_exc()
    raise
finally:
    if driver is not None:
        driver.quit()

Add your Chrome and ChromeDriver version commands to the same diagnostic record using the facilities provided by your operating system or container image. The important result is a reproducible record of the versions and the first failing operation.

Common messages and targeted fixes

Symptom Likely layer Action
session not created Session startup Compare Chrome and ChromeDriver major versions, then verify paths and permissions.
Chrome failed to start: crashed Browser process Read ChromeDriver logs; check the binary, libraries, user permissions, resource limits, and OS restrictions.
Driver executable cannot be found or accessed Environment Use Selenium Manager, put the correct driver on PATH, or provide Service(executable_path=...).
Exception at find_element Page state or locator Check the loaded URL and markup, frames/shadow roots, and add an explicit wait.
Exception only after a long delay Navigation or synchronization Inspect network access and wait for a specific page condition rather than sleeping blindly.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Local WebDriver or a remote browser?

Local WebDriver is usually simplest when you control the browser, driver, operating system, and image. It offers direct control over installed versions and local files, but every developer machine and CI image must remain reproducible.

Remote WebDriver or hosted browser testing moves execution to a controlled environment and can improve repeatability across browser and operating-system combinations. Compare supported browser versions, operating-system coverage, session diagnostics, integration effort, reproducibility, and cost before choosing a service. Selenium documents remote sessions in its driver-session documentation; provider pricing and capabilities vary and are not established here.

Or skip the browser setup

If your goal is a clean website image rather than interactive browser testing, ScreenshotNeo provides a website screenshot API and MCP server. A single GET request returns PNG, JPEG, WebP, or PDF. Before capture it accepts cookie/consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each step can be disabled. Bot checks, CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers identify the page verdict and billing status.

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 documentation for all options):

Best Value
Sale
15.6 Inch Laptop with FHD display, 6GB RAM 128GB Storage Expandable 512GB
  • Portable Lightweight Design: Weighing just 3.6 lbs, the Laptop S7HI is portable, making it perfect for travel, work, and school. Its slim profile and 15-inch HD IPS display offer a great balance of size and portability for everyday use
  • Powerful Processor: With a base frequency 1.9GHz Intel 5205U processor, this laptop handles multiple tasks efficiently. Whether you're working, studying, or streaming, enjoy a smooth experience with reliable performance
  • Ample Storage with Expansion: 128GB of internal storage with an extra 512GB expansion slot offers plenty of room for your documents, photos, and videos. Ideal for students and professionals needing more space for files and projects
  • 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.
  • Comprehensive Connectivity Options: Equipped with Type-C, HDMI, SD Card Reader, and more, this laptop offers flexible connectivity. Stay connected via dual-band WiFi and Bluetooth 4.2, ensuring fast internet access and peripheral support
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

The equivalent Python and Node.js calls are:

import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

ScreenshotNeo also offers an MCP server with take_screenshot, get_page_info, and capture_pdf for Claude, Cursor, and other MCP clients. Features include full-page and element capture, device presets, custom viewports, retina scale, PDF controls, custom CSS and JavaScript, clicks, waits, request blocking, headers, cookies, user agents, authorization, timezone and geolocation, transparent backgrounds, resizing, TTL caching, signed links, asynchronous webhooks, bulk capture of up to 100 URLs per call, a usage API, and an OpenAPI specification. Its parameter names also accept the names used by other screenshot APIs, easing migration.

The Free plan includes 1,000 screenshots each month with no card. Paid plans start at $5 for 3,000 shots; every feature is included on every plan, and yearly billing provides two months free. Create a free ScreenshotNeo account.

Frequently Asked Questions

What does WebDriverException mean in Selenium?

It is the broad base WebDriver exception. The message, traceback, and failing command are required to identify the specific cause; SessionNotCreatedException is the more specific session-startup exception.

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

Should I always add –no-sandbox to headless Chrome?

No. The cited Selenium guidance does not establish it as a universal fix. Add environment-specific flags only when logs and your container or operating-system policy show they are needed.

Do Chrome and ChromeDriver need the same full version?

Start by matching their major versions. For Chrome 115 and later, use Chrome for Testing release information and JSON endpoints to select a compatible paired release.

When should I use a remote WebDriver session?

Consider it when local browser, driver, and operating-system differences make runs difficult to reproduce, and compare supported coverage, diagnostics, integration, and cost.

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.