October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk6 min

Selenium RemoteWebDriver: How to Run Tests Remotely

A practical guide to running Selenium remotely: connect RemoteWebDriver to Grid, start Standalone, configure browser options, transfer files and protect the endpoint.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To run Selenium tests remotely, keep the test code on your client or CI runner and connect a Selenium Grid endpoint with a RemoteWebDriver and browser-specific Options. Grid runs the browser on a separate machine and routes WebDriver commands to it. For a first test, run Selenium Server in Standalone mode and connect to http://localhost:4444.

How remote Selenium execution works

The test process and the browser do not have to run on the same computer. Your test client sends WebDriver commands to Grid over the network; Grid matches the requested browser options to available capacity, starts a session, and forwards commands to the machine running that browser. The browser and its driver run remotely, while assertions and test logic remain in your test code. See Selenium’s Remote WebDriver documentation.

A remote session needs two things: a Grid URL reachable from the client and an Options object describing the browser. In Selenium 4, use the browser’s Options class; older Desired Capabilities examples commonly reflect Selenium 3-era setup. Grid can only satisfy browser or platform requests for which it has matching capacity.

Choose a Grid deployment

Start with the simplest topology that meets your needs. The right size depends on your tests, machines, browser mix and desired concurrency; Selenium does not prescribe a universal capacity or hardware size. Measure performance in your own environment and consult the documentation for your installed release.

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.
Mode Machines and entry point Use it when
Standalone One process on one machine; default endpoint http://localhost:4444. You need a quick local demonstration, debugging target or small CI setup.
Hub and Node A Hub provides the entry point; Nodes add browser capacity. You need to distribute browsers across machines or offer different browser versions.
Distributed Grid components run separately. A larger or customized deployment warrants separately managed components.

Grid supports parallel execution, cross-platform testing and different browser versions, but the topology adds operational work as it grows. Read Selenium’s Grid overview and Getting started with Selenium Grid.

Start a local Grid and connect a Java test

This minimal example assumes Java, Selenium client libraries and a Selenium Server JAR are already available. Start the server in one terminal; run the test from the same machine or another client that can reach port 4444.

  1. Start Selenium Server in Standalone mode: java -jar selenium-server-<version>.jar standalone. Replace the filename with the JAR you downloaded. The default remote endpoint is http://localhost:4444.

  2. Use browser Options and create a RemoteWebDriver session. This example selects Chrome:

    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.
    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 RemoteSmokeTest {
        public static void main(String[] args) throws Exception {
            ChromeOptions options = new ChromeOptions();
            WebDriver driver = new RemoteWebDriver(
                new URL("http://localhost:4444"), options);
            try {
                driver.get("https://example.com");
                System.out.println(driver.getTitle());
            } finally {
                driver.quit();
            }
        }
    }

    The essential constructor pattern is new RemoteWebDriver(new URL("http://gridUrl:4444"), options). Selenium’s Browser Options guide covers browser-specific configuration.

  3. For a different machine or CI runner, replace localhost with the Grid address that the runner can reach, for example http://grid-host.example:4444. Confirm routing, firewall rules and the listening port before debugging the test itself.

  4. Call quit() when the test ends, including on failure, so the remote session is closed rather than left consuming browser capacity.

For Firefox, use FirefoxOptions; for other browsers use their corresponding Selenium Options class. Options may request a browser version or platform, but Grid must have a node that can match them.

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.

Connect from JavaScript

Selenium’s JavaScript API supports selecting a browser and remote server with a Builder. Install the Selenium WebDriver package in the project before running this example:

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

(async () => {
  const driver = await new Builder()
    .forBrowser('chrome')
    .usingServer(process.env.SELENIUM_REMOTE_URL || 'http://localhost:4444')
    .build();
  try {
    await driver.get('https://example.com');
    console.log(await driver.getTitle());
  } finally {
    await driver.quit();
  }
})();

The API documents SELENIUM_REMOTE_URL as an alternative for specifying the server. See the Selenium WebDriver JavaScript API.

Configure Grid for your environment

Grid settings can be supplied with command-line flags or TOML configuration files. Flags can be convenient for a small setup; TOML can make a larger or repeatable configuration easier to read and keep under source control. Standalone settings include the listening port and maximum sessions. Exact options evolve, so consult the configuration reference for your installed Selenium Server version and check its own help output before relying on a flag.

Do not treat a sample CPU or memory figure as a universal sizing rule. Selenium recommends measuring performance in the environment where the Grid will run.

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

Handle files across the client and browser machines

Uploads

A file path used by the remote browser refers to the remote environment unless Selenium’s remote upload handling is used. If the file starts on the test client, configure the remote upload mechanism so the file is transferred to the browser machine; passing the client’s local path alone does not make that file exist remotely. Follow the upload guidance in Remote WebDriver.

Downloads

To retrieve remote downloads through Grid, enable managed downloads when starting Grid and opt in through the client options/session configuration. A download listing is a snapshot, not proof that a listed transfer has completed; wait for the expected file to finish before retrieving or validating it. The relevant session and server settings are described in Selenium’s Grid CLI configuration and Remote WebDriver guides.

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 unprotected Grid endpoint to the public internet. Selenium warns that external access can expose the Grid infrastructure, internal applications and files, and can let third parties run custom binaries. Restrict access with appropriate network controls and firewall permissions; expose only the endpoint needed by trusted test clients. Selenium’s Grid getting-started guide states: “Selenium Grid must be protected from external access using appropriate firewall permissions.”

Troubleshoot common connection failures

  • Connection refused or timeout: The client cannot reach the server at the configured URL and port, or Selenium Server is not running. Verify the Standalone process, listening port, hostname, network route and firewall rules; use localhost only when client and Grid are on the same machine.
  • Session cannot be created: The requested browser, version or platform may not match any available Grid capacity, or the browser/driver setup may be unavailable on the node. Check the requested Options against the configured nodes and server logs.
  • Test works locally but not remotely: Recheck assumptions about filesystem paths, installed browser versions, network access from the browser machine, and any local-only service or URL. The remote browser sees its own environment.
  • Downloads cannot be retrieved: Confirm Grid managed downloads are enabled and the client session opts in. Do not treat a listing as completion; wait for the download to finish.
  • Grid options are rejected: Configuration names and availability can vary by server release. Check the installed server’s help output and version-matched CLI or TOML documentation.

Or skip the browser setup

If the goal is to capture a page rather than run interactive browser tests, ScreenshotNeo offers a screenshot API and MCP server. A single request can return an image or PDF. Its clean-shot steps accept cookie/consent banners and remove more than 60 known consent platforms, newsletter popups and chat widgets; each step can be turned off. Bot checks, blank pages, timeouts, failed loads and cache hits cost nothing, with response headers identifying the page verdict and billing status. An MCP server provides take_screenshot, get_page_info and capture_pdf tools for AI agents.

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

cURL example (see the ScreenshotNeo documentation):

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

ScreenshotNeo includes 1,000 shots per month free with no card; paid plans start at $5 for 3,000 shots. Sign up for free ScreenshotNeo access.

Frequently Asked Questions

Can I use RemoteWebDriver without Selenium Grid?

RemoteWebDriver needs a remote WebDriver server endpoint; Selenium Grid is the documented infrastructure for routing sessions across remote browser machines.

Does the test code run on the remote machine?

No. The client runs the test logic and sends commands; the remote machine runs the browser and driver.

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