Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
World desk8 min

Selenium Grid 4 Tutorial: Run WebDriver Tests Across Browsers in Parallel

Start Selenium Grid 4 locally, connect a RemoteWebDriver client, and scale to multiple browser Nodes with practical capacity and security guidance.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Selenium Grid 4 lets WebDriver clients run tests against browser instances on remote machines, including different browser and operating-system combinations. For a first setup, run Grid in Standalone mode and connect a RemoteWebDriver to http://localhost:4444. Grid can distribute work, but parallel execution depends on your tests being independent and on having available browser slots and enough machine resources.

What Selenium Grid does—and what it does not do

Grid accepts WebDriver requests and routes them to browser sessions that match the requested capabilities. That makes it useful for running tests remotely, covering multiple browsers or platforms, and distributing independent tests across available machines. The Selenium Project describes these uses in its Grid overview.

Grid is not a test runner or a source of automatic speedup. Your test framework must schedule independent tests concurrently, and Grid needs matching, available browser slots to serve those requests. Actual throughput also depends on browser startup time, test behavior, network conditions and host capacity.

Choose a Grid deployment mode

Mode How it works When it fits Trade-offs
Standalone Grid components run together in one process on one machine. Local learning, development, or a small CI job using one host. Simple to start; browser diversity and capacity are limited to what that host can run.
Hub and Node A Hub provides a shared entry point; one or more Nodes host browser sessions. A shared Grid across machines, especially when Nodes provide different browsers or operating systems. Requires network connectivity between the Hub and Nodes and attention to reachable ports and host security.
Fully distributed Grid components are started and deployed separately rather than bundled as a Hub or Standalone process. Deployments that need individual component placement or operational control. More configuration and operational work; use the role-specific setup in the official guide.

These modes are alternatives, not a ranking. Choose according to your browser and OS matrix, expected concurrent sessions, number of machines, available resources, and how you will monitor and secure the service. The Selenium Project describes the roles in Grid components.

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.

Prerequisites for the quick start

  • Java 11 or higher. This is the minimum listed in the current Selenium getting-started documentation; verify the version requirement for the Selenium Server release you download.
  • The browser or browsers you intend to test. Install them on the machine that will host the sessions.
  • Browser drivers. Configure drivers for your browsers, or use Selenium Manager as described by Selenium’s getting-started guide.
  • The Selenium Server JAR. Download a current release from Selenium’s official downloads and use its actual filename in the command below. The filename is versioned; no particular release number is assumed here.

Start a local Standalone Grid

  1. Open a terminal in the directory containing the Selenium Server JAR.
  2. Start the server, replacing <version> with the version in your downloaded filename:
    java -jar selenium-server-<version>.jar standalone
  3. Leave that process running. Open http://localhost:4444 to view the Grid UI, or request http://localhost:4444/status to inspect status.
  4. Configure a client to use http://localhost:4444 as its RemoteWebDriver endpoint.

These are the default local Standalone instructions in Selenium’s getting-started guide. Release-specific commands and defaults can change, so consult that guide for the exact server version you use.

Connect a Java test with RemoteWebDriver

Add the Selenium Java client dependency appropriate for your build and Selenium Server release. The example below creates a remote Chrome session, names it in the Grid UI, opens a page, and quits the session even if navigation fails. The Grid host must have a Chrome slot available, with a usable browser and driver configuration.

import java.net.URL;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.remote.RemoteWebDriver;

public class GridSmokeTest {
    public static void main(String[] args) throws Exception {
        ChromeOptions options = new ChromeOptions();
        options.setCapability("se:name", "Grid smoke test");

        WebDriver driver = new RemoteWebDriver(
            new URL("http://localhost:4444"), options);
        try {
            driver.get("https://example.com");
            System.out.println(driver.getTitle());
        } finally {
            driver.quit();
        }
    }
}

se:name is session metadata that can make a session easier to identify in the Grid UI. Keep the requested capabilities aligned with what the Grid’s browser slots provide. For example, request Firefox options for Firefox rather than Chrome options; add platform requirements only when your Nodes actually provide the requested platform.

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.

Run tests concurrently across browsers

Make tests safe to run at the same time

Parallelize independent test cases, not steps that share a browser session or mutable test data. Give concurrent cases isolated accounts, records, files, or other state where needed. A test suite that serializes access to shared data may become flaky when moved to Grid even if browser sessions are separate.

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

Request the browser and platform each test needs

Create a separate remote session with the appropriate browser options for each test or worker. Grid’s Distributor matches a new-session request to an available slot based on its requested capabilities. If no slot matches, the session cannot be assigned; ensure the requested browser and platform are registered on a Node and that capacity is free.

Let the test runner control parallelism

Configure your test framework or CI job to run multiple independent tests at once. Grid supplies remote sessions; it does not decide how many test cases your framework schedules. Start with a conservative worker count, then increase it only while session creation succeeds and measured run time and resource use remain acceptable.

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.

Scale to Hub and Node

Use Hub and Node when one machine is insufficient or when browser and OS coverage must span machines. Start the Hub on the machine that clients will reach, then start a Node on each browser host, following the commands for your Selenium release in the official guide.

The getting-started documentation lists Event Bus ports 4442 and 4443 by default and Node port 5555 by default. These are defaults, not universal values: check your release and configuration. Make the required ports reachable between the Hub and Nodes, and the Grid endpoint reachable from authorized test clients. Use the guide’s fully distributed instructions if you deploy individual roles separately; do not assume Hub-and-Node port instructions cover every distributed role.

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

How Grid 4 routes sessions

Grid 4 separates responsibilities across the Router, New Session Queue, Distributor, Node, Session Map, and Event Bus. The Router accepts client requests, directing new sessions through the queue and Distributor or routing commands for an existing session to the Node hosting it. The Distributor selects an available slot whose capabilities match the request; the Node runs the browser session. The Session Map tracks sessions, while the Event Bus carries internal events between Grid components. The Selenium Project explains the roles in its components guide and architecture overview.

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

Estimate capacity by measuring your own workload

Selenium’s getting-started guide offers about 1 GB of RAM per browser session as a planning reference, not a guarantee. Node defaults relate concurrent sessions to CPU count, and Safari is limited to one session in the documented default guidance. Actual safe concurrency depends on browser, page weight, test activity, host resources, and configuration; the components guide also cautions that these are configurable behaviors.

  1. Begin with a small number of concurrent sessions on representative tests.
  2. Record session throughput, run duration, failed session starts, CPU and memory use, and browser stability.
  3. Increase concurrency in measured increments, watching for resource pressure or a rise in failures.
  4. Adjust Node configuration or add machines only after identifying the limiting resource or browser slot.

Do not plan around a linear speedup. The Selenium applicability page’s distribution equations are illustrative and assume work can be divided across available Nodes; real test suites have setup, dependencies, contention, and other overhead.

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

Secure the Grid endpoint

Do not expose an unauthenticated Grid to the public internet. Selenium warns that an exposed Grid can provide access to infrastructure, internal applications and files, and may allow third parties to run binaries. Restrict access with private networking, firewall rules, or other controls appropriate to your environment. Expose the endpoint only to authorized clients and Nodes; do not treat the default port as a security boundary. See the warning in the getting-started guide.

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.

Troubleshooting common setup failures

Symptom Likely cause What to check
Server does not start Java is missing or too old, the JAR path or filename is wrong, or the command does not match the release. Confirm Java 11 or higher, check the JAR filename, and follow the current release’s getting-started instructions.
Client cannot connect to localhost:4444 Grid is not running, the client is on another machine, or the endpoint/port is not reachable. Check the server terminal, open the Grid UI or /status from the client host, and use the Hub address rather than localhost for remote clients.
New session request fails or waits No free slot matches the requested browser or platform, or the Node is unavailable. Inspect registered Nodes and available slots in the UI; align requested capabilities with installed browsers and configured slots.
Hub does not see a Node Node cannot reach the Hub or required Event Bus/Node ports are blocked or configured differently. Check hostnames, firewall rules and the release’s port settings; verify Event Bus ports 4442/4443 and Node port 5555 only if using their defaults.
Browser fails to launch on a Node Browser or driver is missing, incompatible, or not configured for that environment. Install the target browser and configure its driver, or verify Selenium Manager behavior for your setup.
More parallel workers make tests slower or flaky The host may be resource constrained, or tests may contend for shared data or services. Reduce worker count, isolate test data, and measure resource use and failures before increasing capacity again.

Or skip the browser setup

If you need a clean image or PDF of a page rather than a WebDriver test session, ScreenshotNeo is a website screenshot API and MCP server. A single GET request can return a PNG, JPEG, WebP, or PDF; the API is not a substitute for Selenium when you need interactive browser automation or test assertions. The request example uses ScreenshotNeo’s API documentation for details and options.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp
  • Cookie/consent banners are accepted and removed, along with supported newsletter popups and chat widgets, before capture; each step can be turned off.
  • Bot checks/CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed; responses report the page verdict and billing status in headers.
  • 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 shots per month with no card; paid plans start at $5 for 3,000 shots.

Sign up for ScreenshotNeo’s free plan to try 1,000 screenshots a month with no card.

Frequently Asked Questions

Can Selenium Grid run tests on different operating systems?

Yes, when Nodes running those operating systems are registered and provide slots matching the session capabilities your tests request.

Does Grid require a specific test framework?

No framework is specified by Grid itself; the client needs to use a Selenium WebDriver binding and the framework must schedule any desired parallel test execution.

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.

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
Crashes, No Sound, or Screen Glitches?Free driver scan

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.