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

Run Selenium Grid locally first: install Java 11 or newer, a browser, and the Selenium Server JAR, then start java -jar selenium-server-<version>.jar standalone. Your remote WebDriver endpoint and Grid UI will be available at http://localhost:4444. Point a RemoteWebDriver test at that URL to execute in the browser managed by Grid.

This guide explains what Grid does, provides working examples, shows how to size and secure it, and then covers the point at which a multi-node, containerized, or managed service makes more sense.

What Selenium Grid actually provides

Selenium Grid is an execution layer for WebDriver tests. WebDriver is the W3C browser-automation API; a browser-specific driver communicates with the browser, while Grid routes your test’s session request to a suitable browser instance on a node. That separation lets one test suite cover different browsers, browser versions, operating systems, and parallel copies of a browser.

Grid does not replace your test framework or WebDriver bindings. Your assertions and test code remain the same; only the driver endpoint changes from a local browser driver to Grid’s URL. Grid 4’s internal services include a Router, New Session Queue, Distributor, Session Map, Event Bus, and Nodes. In Standalone mode these components run together in one process, so you do not have to configure each service separately.

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.

Prerequisites and the fastest working setup

Install the required software

  • Java 11 or higher.
  • At least one supported browser installed on the machine running Grid.
  • The matching browser driver, unless you let Selenium Manager configure drivers.
  • The Selenium Server JAR. Check the official Grid getting-started page for the current download and version rather than copying an old version number.

Selenium Manager can automate driver (and, where supported, browser) management. When configuring it for Grid, enable it explicitly with --selenium-manager true.

Start Standalone Grid

  1. Open a terminal in the directory containing the downloaded JAR.
  2. Run:
    java -jar selenium-server-<version>.jar standalone
  3. Leave the process running. Open http://localhost:4444 to see the Grid UI and use that same address as the remote WebDriver endpoint.

To ask Grid to manage drivers, use:

java -jar selenium-server-<version>.jar standalone --selenium-manager true

Standalone is intended for local development and debugging, quick pre-push suites, and straightforward CI. It runs browser sessions on one machine, so it is not a high-availability service.

Point a test at http://localhost:4444

The following Python example uses Selenium 4. Install the binding with pip install selenium. The browser choice is sent as a capability; Grid starts a matching slot.

from selenium import webdriver
from selenium.webdriver.chrome.options import Options

options = Options()
options.add_argument("--headless=new")

driver = webdriver.Remote(
    command_executor="http://localhost:4444",
    options=options,
)
try:
    driver.get("https://example.com")
    print(driver.title)
finally:
    driver.quit()

For Java, add the Selenium Java dependency to your build and create a remote driver:

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.
ChromeOptions options = new ChromeOptions();
options.addArguments("--headless=new");
WebDriver driver = new RemoteWebDriver(
    URI.create("http://localhost:4444").toURL(), options);
try {
    driver.get("https://example.com");
    System.out.println(driver.getTitle());
} finally {
    driver.quit();
}

Use the hostname reachable from the test process. If the test runs in a container, localhost means that container, not your host; use the host’s service name or an appropriate network address instead. Always call quit() so Grid releases the session slot.

Parallel execution and browser coverage

Grid is useful when serial execution makes feedback too slow or when the same suite must run against a browser/OS matrix. Parallelism is bounded by available node capacity, CPU, memory, browser licenses or platform availability, and the way your tests isolate data.

Size for measured workload

Selenium’s guidance says a node’s default browser-session capacity is generally limited by available CPUs; Safari is limited to one session. It gives roughly 1 GB of RAM per browser session as a planning reference, not a guarantee. Measure your own pages, browser versions, headless settings, downloads, and test data before selecting concurrency.

The official “When to Use Grid” page contains illustrative arithmetic: 15 tests taking 45 seconds each total 11 minutes 15 seconds serially, 2 minutes 15 seconds with five nodes, and 45 seconds with 15 nodes. A separate 100-test illustration at 120 seconds each is shown as 13 minutes 20 seconds with 15 nodes versus more than three hours without Grid. These are project examples, not benchmarks or promises for your hardware.

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.

Make tests parallel-safe

  • Give each test its own account, tenant, files, and temporary directory.
  • Do not assume a shared current working directory or a fixed browser profile.
  • Use explicit waits instead of sleeps where possible; slow pages otherwise occupy slots unnecessarily.
  • Capture logs and screenshots on failure, and always terminate sessions in teardown code.

When to move beyond Standalone

Hub-and-Node or fully distributed Grid

Use Hub-and-Node when one entry point must coordinate machines or when one host cannot provide the required browser/OS matrix or concurrency. Distributed mode runs Grid components separately: a Router receives requests, the Distributor selects a node, and Nodes provide browser slots. This adds deployment, discovery, upgrades, observability, and failure-management work.

Containers and Kubernetes

The Docker Selenium project provides images for containerized browsers and Grid arrangements. Kubernetes deployments can use the documented Helm route. Containers make repeatable images and horizontal scaling easier, but you still need to control CPU and memory limits, shared artifacts, browser image updates, networking, and cleanup of abandoned sessions.

Managed cloud browser testing

A managed service can remove node patching, browser-image maintenance, and much of the Grid operations burden. Evaluate current browser and OS coverage, supported versions, geographic regions, concurrency limits, session retention, network access to private applications, security controls, data handling, and current pricing. Historical Selenium documentation mentions cloud vendors, but those examples do not establish present-day support or prices.

Choice Best fit What you own Trade-off
Standalone Local development, debugging, small CI suites One machine, browser and driver installation Limited capacity and platform coverage
Multi-node or container Grid Higher parallelism and a controlled browser matrix Grid services, nodes, images, networking, upgrades and security More operational complexity
Managed cloud service Teams that want outsourced browser infrastructure Test code, credentials, network integration and vendor configuration Ongoing service cost and provider-specific limits

Secure the WebDriver endpoint

Do not expose an unauthenticated Grid directly to the internet. Selenium’s documentation warns that an exposed Grid can let third parties reach Grid infrastructure and internal applications or files, and potentially run custom binaries. Put Grid on a private network, restrict inbound traffic with firewall rules or security groups, and allow only trusted CI runners and developers. Add an authenticated reverse proxy or private tunnel where appropriate, avoid placing secrets in command-line arguments that CI logs, and monitor session creation and node health.

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.
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
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshooting common failures

Connection refused at port 4444

Confirm the JAR process is running, that it did not exit with a Java error, and that the test uses the correct host and port. From a container, replace localhost with the reachable Grid service name.

SessionNotCreatedException

The requested browser may be absent, the driver may be incompatible, or all matching slots may be busy. Install the browser, enable Selenium Manager, verify capabilities, and inspect the Grid UI for node availability.

Driver or browser version mismatch

Update the browser and driver together, or let Selenium Manager resolve them. Pin versions in CI images when reproducibility matters and update them deliberately.

Sessions remain after a failed test

Put driver.quit() in a finally block or framework teardown hook. Set sensible test timeouts and clean abandoned sessions at the infrastructure layer.

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.

Tests are slower with more nodes

Check CPU throttling, RAM pressure, startup time, network latency, test-data contention, and the actual number of free matching slots. More nodes do not guarantee linear speedup.

Or skip the browser setup

If your requirement is a website image or PDF rather than interactive WebDriver control, ScreenshotNeo provides a single-request screenshot API and an MCP server for Claude, Cursor, and other MCP clients. 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.

Use the documented options for full-page captures with lazy images, CSS-selector elements, dark mode, device presets, custom viewport and retina scale, PDFs, custom CSS or JavaScript, clicks, waits, request blocking, headers, cookies, user agents, authorization, timezone, geolocation, transparent backgrounds, resizing, TTL caching, signed links, asynchronous webhooks, bulk capture, and usage reporting.

cURL

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

Python

import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
r.raise_for_status()
open("shot.webp", "wb").write(r.content)

Node.js

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
if (!res.ok) throw new Error(`HTTP ${res.status}`);
require('fs').writeFileSync('shot.webp', Buffer.from(await res.arrayBuffer()));

See the ScreenshotNeo API documentation for parameters and response headers. The Free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 screenshots. Every feature is included on every plan. Create a free ScreenshotNeo account.

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

Operational checklist

  • Verify Java, browser, driver, and Selenium Server versions in CI.
  • Keep the Grid endpoint private and firewall-restricted.
  • Record browser, platform, node, session, and test identifiers with failures.
  • Measure queue time, session startup, test duration, CPU, RAM, and failure rate before increasing concurrency.
  • Reassess Standalone when the matrix, parallel demand, or operational burden outgrows one host.

Frequently Asked Questions

Can Selenium Grid run without a separate Hub process?

Yes. Grid 4 Standalone runs the Grid components in one Selenium Server process and serves the endpoint at http://localhost:4444.

Is Selenium Grid the same as a cloud browser provider?

No. Grid is software you run to route WebDriver sessions. A managed provider operates the browser infrastructure for you; compare its current coverage, limits, security and price separately.

When should I add nodes?

Add nodes when measured queue time or required browser/OS coverage exceeds one machine’s capacity, and confirm that your tests are isolated enough to run concurrently.

The Bottom Line

Start with Standalone Grid and http://localhost:4444; move to distributed or managed infrastructure only when measured coverage, concurrency, or operations justify it. Keep every Grid endpoint private.

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.

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.