October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk8 min

How to Install Selenium 4: Python, Java, .NET, Ruby, and Node.js

Install Selenium 4 using your language’s package manager, verify a first browser session, and understand when Selenium Manager handles the driver automatically.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Install Selenium 4 through your language’s package manager or build tool—not with a universal desktop installer. As of October 3, 2026, the Selenium project lists 4.49.0, released September 9, 2026, as stable; 4.50.0 is a nightly snapshot. Choose your language below, add Selenium to the project, then try a browser session. In the usual supported setup, Selenium Manager can find a compatible browser driver for you, so you do not normally need to download one separately.

Choose the Selenium package for your language

Use the package manager or build tool your project already uses. The commands without a version pin install the latest version available when you run them; pin a version in a project dependency file when you need repeatable builds. Selenium’s official install examples use version 4.49.0 for pinned dependencies as of October 3, 2026. Check the current Selenium downloads page before pinning a release.

Language Install command or declaration Where it belongs
Python pip install selenium; pinned: selenium==4.49.0 Run in the active environment; put the pin in requirements.txt.
Java org.seleniumhq.selenium:selenium-java Add the dependency to Maven’s pom.xml or a Gradle build, using Maven Central.
.NET / C# dotnet add package Selenium.WebDriver Run from the project directory, or add a NuGet PackageReference to the project file.
Ruby gem install selenium-webdriver Run directly, or declare the dependency in the project’s Gemfile and use Bundler.
JavaScript / Node.js npm install selenium-webdriver Run from the Node.js project directory.

Install Selenium in Python

Create an environment and install

From your project directory, create and activate a virtual environment if you want the Selenium dependency isolated from other Python projects. Then install the binding:

python -m venv .venv
# macOS or Linux:
source .venv/bin/activate
# Windows PowerShell:
.venvScriptsActivate.ps1
python -m pip install selenium

To pin the version used in the official Selenium example at the date above, put this line in requirements.txt:

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.
#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.
selenium==4.49.0

Install from that file with python -m pip install -r requirements.txt. The minimum supported Python version can vary by Selenium release; consult the version-specific “Supported Python Versions” metadata on PyPI rather than relying on an old minimum.

Verify with a browser session

Save as check_selenium.py, then run python check_selenium.py. This opens Chrome, reads the page title, and closes the session even if an error occurs after the browser starts.

from selenium import webdriver

with webdriver.Chrome() as driver:
    driver.get("https://example.com")
    print(driver.title)

Install Selenium in Java

Use the build tool already configured for your Java project. For Maven, add this dependency inside the project’s <dependencies> element in pom.xml:

<dependency>
  <groupId>org.seleniumhq.selenium</groupId>
  <artifactId>selenium-java</artifactId>
  <version>4.49.0</version>
</dependency>

For Gradle, add the equivalent dependency and version to the project’s dependencies configuration. The official current Gradle example uses Selenium 4.49.0 and Maven Central. Use your project’s existing syntax and dependency management rather than adding a second, conflicting declaration.

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

For a minimal Maven project, save this class under the usual source directory as src/main/java/QuickCheck.java, then run it with your project’s configured Java tooling:

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class QuickCheck {
  public static void main(String[] args) {
    WebDriver driver = new ChromeDriver();
    try {
      driver.get("https://example.com");
      System.out.println(driver.getTitle());
    } finally {
      driver.quit();
    }
  }
}

Verify the minimum supported Java version for the Selenium release you select on the current install documentation. An older Selenium 4 upgrade page states Java 8 as a minimum, but that historical statement should not be assumed to describe every later release.

Install Selenium in .NET or C#

Run this from the directory containing the project file:

dotnet add package Selenium.WebDriver

Alternatively, use the Package Manager Console command Install-Package Selenium.WebDriver, or add a versioned PackageReference to the project’s .csproj. The current official example pins version 4.49.0. After adding the package, restore and build the project using its normal .NET workflow.

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

If restore or build fails, check that NuGet package sources are configured and that any nuget.config is present and well formed. A package-source configuration problem can prevent a dependency from resolving even when the package name is correct.

Install Selenium in Ruby

For a direct installation, run:

gem install selenium-webdriver

For a project-managed install, declare selenium-webdriver in the Gemfile and run Bundler. To pin the current official example’s version, use:

gem "selenium-webdriver", "4.49.0"

Check RubyGems’ metadata for the selected release’s minimum Ruby version before installing it into an older runtime.

Install Selenium in JavaScript or Node.js

From your Node.js project directory, install the WebDriver package:

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

The current official example pins version 4.49.0; npm records the installed dependency in the project manifest and lockfile. Check the package’s Node Support Policy for the minimum Node.js version supported by the Selenium release you choose.

This CommonJS example uses Chrome and prints the page title. Save it as check.js and run node check.js:

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

(async function check() {
  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 starting at 4.6. When a binding needs a driver and none has been provided, Selenium Manager can detect an installed browser’s version, resolve and download a compatible driver, and cache it. Install Selenium first, then try a normal WebDriver session such as the examples above.

From Selenium 4.11 onward, Selenium Manager can also discover, download, and cache supported browsers, including Chrome, Firefox, and Edge. This is not a guarantee for every operating system, architecture, or custom browser installation. You can still provide a driver manually or use another driver-management tool when the environment requires explicit control.

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.

When automatic driver setup may not work

  • The Selenium Manager documentation says its binaries are supplied for Windows, Linux, and macOS; documented support covers Windows x86 and x64, macOS Intel and Apple Silicon, and Linux x64.
  • Linux ARM64/aarch64, 32-bit systems, and Raspberry Pi are listed as environments where Selenium Manager will not work normally.
  • A browser installed through a custom Linux package manager may require you to specify the browser and/or driver location.
  • A browser can fail to launch on Linux if required system libraries are missing.
  • Restricted network access can prevent Selenium Manager from downloading a driver or browser that is not already available.

For these cases, follow the Selenium Manager documentation for browser and driver paths, or provide a compatible driver yourself. Selenium’s documentation describes Selenium Manager as “the official driver manager of the Selenium project” and says it ships with every Selenium release: Selenium Manager documentation.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How to choose a version and keep setup reproducible

Use the stable release for a general setup unless your project has a reason to stay on a particular version. As of October 3, 2026, that is Selenium 4.49.0, released September 9, 2026; 4.50.0 is listed as a nightly snapshot, not a stable release. These version labels change, so confirm them on the downloads page when setting up a new project.

  • For a quick local experiment, an unpinned install command is convenient but can resolve to a newer version later.
  • For a team project or automated build, record an exact Selenium version in the language’s dependency file or build configuration and commit the appropriate lockfile where the ecosystem uses one.
  • Check the supported runtime metadata for that exact release: Python on PyPI, Ruby on RubyGems, Node.js in the package’s support policy, and Java in the current Selenium install documentation.
  • Keep browser and driver setup consistent across developer machines and CI. If the environment cannot download binaries dynamically, provision the browser and driver explicitly and configure their locations.

Troubleshoot common installation and startup problems

Symptom Likely cause What to check or do
The package command succeeds, but the script cannot import or find Selenium. Installation and execution are using different language environments or project directories. Activate the intended Python virtual environment, use that interpreter’s pip, or run the command from the correct Node, Ruby, Java, or .NET project.
Dependency resolution says the runtime version is unsupported. The selected Selenium release requires a newer Python, Java, Ruby, or Node.js runtime. Check the selected release’s current runtime metadata and either upgrade the runtime or choose a compatible Selenium version.
The first browser session cannot obtain a driver. Selenium Manager cannot reach its download source, cannot identify a supported browser setup, or is running on a platform outside normal support. Check network access and platform architecture; for custom installs, configure browser/driver paths or supply a compatible driver manually.
Browser starts and immediately exits or fails to launch on Linux. System libraries may be missing, or the browser package location may differ from Selenium Manager’s expectations. Install the browser’s required system libraries and provide explicit browser or driver locations if the package is nonstandard.
dotnet add package or restore cannot find Selenium.WebDriver. NuGet sources may be absent or nuget.config may be missing or malformed. Review the configured package sources and repair the project’s NuGet configuration, then restore again.
A pinned dependency installs, but a different version runs in another environment. The version was not pinned consistently, or the relevant lockfile/dependency file was not used during install. Record the version in the project’s canonical dependency file and install from that file in local and automated environments.

Or skip the browser setup

If your goal is a website screenshot rather than browser automation, ScreenshotNeo offers a screenshot API and MCP server. One GET request returns an image or PDF. Cookie banners are accepted or removed, along with known consent platforms, newsletter popups, and chat widgets; those cleanup steps can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and responses identify the page verdict and billing status. Its MCP server provides screenshot tools for Claude, Cursor, and other MCP clients.

Use an API key from your account; the endpoint and options are documented at ScreenshotNeo docs.

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.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp

The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000. Sign up for free.

Frequently Asked Questions

Is Selenium 4 the same as Selenium WebDriver?

Selenium 4 is the current major generation of Selenium’s browser automation project; the language packages install its WebDriver bindings.

Can I install Selenium from VS Code?

Yes. Open the project’s integrated terminal and run the command for its language and environment; VS Code itself is not a separate Selenium installer.

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. Shenzhen desk3 min
    HONOR Expands Beyond Smartphones With Humanoid Robot RevealHONOR said it unveiled its first humanoid robot at MWC 2026 and named shopping assistance, workplace inspections, and supportive companionship as intended uses. Later Robotics D1 claims and a reported…
  2. Cupertino desk5 min
    Apple Unveils AirPods Max 2: The Upgrade That Should Have Happened Years AgoAirPods Max 2 adds H2-powered audio features and Apple claims up to 1.5× more effective ANC, but its design, Smart Case, and 20-hour battery rating are unchanged. Wired lossless audio…
  3. Cupertino desk4 min
    Apple’s OLED Touch MacBooks Are Coming—but the Dynamic Island Is the Real GambleApple has not announced an OLED touchscreen MacBook, but reports point to high-end models arriving in late 2026 or early 2027. The reported Mac Dynamic Island could be useful, but…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

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.