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

Install Selenium 4 through the package manager or build tool for your programming language; there is no single Selenium desktop installer. As of October 3, 2026, the Selenium Project lists 4.49.0, released September 9, 2026, as the stable version and 4.50.0 as a nightly snapshot. The commands below install the latest available package; pin a version in your project when you need repeatable builds. Check the official downloads page for the current release.

Choose an installation method

Use the binding for the language your project uses. If the project already has a dependency file or build tool, add Selenium there rather than installing it globally. Examples below show both a quick install and, where useful, how to pin the version current on October 3, 2026: 4.49.0.

Language Install command Where to pin the dependency
Python pip install selenium requirements.txt: selenium==4.49.0
Java Add org.seleniumhq.selenium:selenium-java using Maven or Gradle Maven pom.xml or Gradle build file; set the version to 4.49.0
.NET / C# dotnet add package Selenium.WebDriver .csproj PackageReference with version 4.49.0
Ruby gem install selenium-webdriver Gemfile, version 4.49.0
JavaScript / Node.js npm install selenium-webdriver package.json, version 4.49.0

Version numbers change. The stable and nightly versions above are the Selenium Project’s listings on October 3, 2026, not a guarantee that a later package install will resolve to the same version. Check the language package registry and Selenium downloads page when setting up a new project.

Install Selenium for Python

Install in a virtual environment

From your project directory, create and activate a virtual environment, then install the binding:

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.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • 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.
  1. python -m venv .venv
  2. Activate it: on Windows run .venvScriptsactivate; on macOS or Linux run source .venv/bin/activate.
  3. Run python -m pip install selenium.

To pin the version used in this guide, put selenium==4.49.0 in requirements.txt and install project dependencies with python -m pip install -r requirements.txt. Check the “Supported Python Versions” metadata on PyPI for the minimum Python version supported by the particular Selenium release you choose; that minimum can change between releases. Selenium on PyPI.

Verify with a first browser session

Save this as smoke_test.py and run python smoke_test.py. It opens a browser, prints the page title, and closes the session even if an error occurs:

from selenium import webdriver


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

If Chrome is installed and Selenium Manager can reach the required downloads, Selenium generally resolves the matching driver automatically; a separate ChromeDriver install is not normally needed.

Install Selenium for Java

Maven

Add the Selenium Java dependency inside the <dependencies> element in pom.xml. Use the current version when this guide was prepared, or update it after checking the official release listing.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
<dependency>
  <groupId>org.seleniumhq.selenium</groupId>
  <artifactId>selenium-java</artifactId>
  <version>4.49.0</version>
</dependency>

Gradle

For a Gradle project, add the Maven Central repository and Selenium dependency in the build file. This Groovy DSL example pins the dependency:

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 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.
repositories {
    mavenCentral()
}

dependencies {
    testImplementation 'org.seleniumhq.selenium:selenium-java:4.49.0'
}

Confirm the minimum Java version required by the Selenium release you use on the current official installation documentation; older upgrade guidance may describe historical requirements rather than the current release floor.

Install Selenium for .NET / C#

In the directory containing your project file, run:

dotnet add package Selenium.WebDriver

Alternatively, in Visual Studio’s Package Manager Console use Install-Package Selenium.WebDriver. To pin a version directly in the project file, add this within the <Project> element:

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.
<ItemGroup>
  <PackageReference Include="Selenium.WebDriver" Version="4.49.0" />
</ItemGroup>

Then restore and build the project. If package restore or build fails, check that NuGet package sources are configured correctly and that any nuget.config file is valid.

Install Selenium for Ruby

For a global gem installation, run:

gem install selenium-webdriver

For a project managed with Bundler, add a pinned dependency to its Gemfile:

Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • 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.
gem 'selenium-webdriver', '4.49.0'

Then run bundle install. Check RubyGems for the minimum Ruby version required by the exact Selenium release you select.

Install Selenium for JavaScript / Node.js

In your Node.js project directory, run:

npm install selenium-webdriver

For a reproducible dependency, install the version used here with npm install selenium-webdriver@4.49.0. Check Selenium WebDriver’s Node Support Policy for the minimum Node.js version supported by that release.

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

This CommonJS smoke test opens a Chrome session, visits a page, prints its title, and shuts down:

const { Builder } = require('selenium-webdriver');

(async function () {
  const driver = await new Builder().forBrowser('chrome').build();
  try {
    await driver.get('https://example.com');
    console.log(await driver.getTitle());
  } finally {
    await driver.quit();
  }
})();

Do you need to install ChromeDriver separately?

Usually, no. Selenium Manager is included with Selenium releases beginning at 4.6. When a binding has not been given a driver, it can detect the installed browser version, resolve and download a compatible driver, and cache it. Selenium Manager is the default fallback, not the only way to configure a driver: you can supply one yourself or use another driver-management tool when your environment requires it. Read the Selenium Manager documentation.

From Selenium 4.11, Selenium Manager can also discover, download, and cache supported browsers. Its documented browser management covers Chrome, Firefox, and Edge. This does not mean every operating system, architecture, or restricted network will work without configuration.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • 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

When automatic setup may not work

  • The documented Selenium Manager binaries support Windows x86 and x64, macOS Intel and Apple Silicon, and Linux x64. The documentation warns that it will not work normally on Linux ARM64/aarch64, 32-bit systems, or Raspberry Pi.
  • A custom Linux browser package may be installed somewhere Selenium Manager does not discover; specify browser and/or driver locations when needed.
  • Corporate network rules may block driver or browser downloads. Use an approved download path or provide a compatible driver explicitly.
  • A browser may fail to launch on Linux when required system libraries are missing.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Common installation and startup problems

“Driver not found” or Selenium Manager cannot download a driver

Confirm that the browser is installed and supported, that the machine can reach the required download hosts, and that the Selenium binding is current. On a restricted network, install a compatible driver through your approved process and configure Selenium to use it; for nonstandard browser locations, provide the relevant path.

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

Browser launches locally but not on Linux or a server

Check the host’s architecture against Selenium Manager’s documented support, verify the browser’s actual install path, and install any required system libraries. A Linux ARM64 or Raspberry Pi host may need a different driver-management approach because Selenium Manager is not documented as working normally there.

Package installation succeeds but code cannot import or find Selenium

Make sure the install command and program use the same environment. In Python, activate the intended virtual environment before using pip and running the script. In Java, .NET, Ruby, or Node.js, run the build or script from the project that contains the dependency and refresh or restore its dependencies.

Dependency restore or compatibility errors

Verify the runtime requirement for the exact release against the package’s current registry metadata. For .NET, also inspect NuGet sources and nuget.config. If a pinned version is incompatible with the project’s runtime, either choose a compatible Selenium release or upgrade the runtime deliberately rather than removing the pin without checking.

Or skip the browser setup

If your goal is to capture a web page rather than automate browser interactions, ScreenshotNeo is a screenshot API and MCP server that returns an image or PDF from one request. Its API can capture a URL without setting up Selenium and a local browser driver.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 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.

cURL example:

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

For setup details and response options, see the ScreenshotNeo API documentation.

  • It accepts cookie or consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each step can be turned off.
  • Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed. Response headers indicate the page verdict and billing status.
  • An MCP server provides take_screenshot, get_page_info, and capture_pdf tools for AI agents and MCP clients.
  • The free plan includes 1,000 screenshots per month without a card; paid plans start at $5 for 3,000 screenshots.

Sign up for 1,000 free screenshots a month, with no card required.

Frequently Asked Questions

How do I install Selenium in VS Code?

VS Code does not have a separate Selenium installer. Open your project folder in VS Code, use its integrated terminal to run the install command for your language, and run your smoke-test script from the same project environment.

Is Selenium 4.50.0 stable?

No. On October 3, 2026, the Selenium downloads page listed 4.50.0 as a nightly snapshot and 4.49.0 as stable.

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.