Scale browser tests across multiple machines using Selenium Grid

domain: selenium.dev · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Download the Selenium Server JAR and start a Hub node: `java -jar selenium-server.jar hub` — the Hub listens on port 4444 by default and coordinates test distribution.
  2. On each machine that will run browsers, start a Node: `java -jar selenium-server.jar node --hub http://hub-host:4444` — the Node registers its available browsers and capabilities with the Hub automatically.
  3. Point your WebDriver tests at the Hub URL by creating a `RemoteWebDriver` with `new RemoteWebDriver(new URL('http://hub-host:4444'), capabilities)` — the Hub routes each session to a matching Node.
  4. Use `DesiredCapabilities` or the W3C `Options` classes to specify browser name, version, and platform so the Hub selects the correct Node for each test.
  5. Monitor the Grid's status and active sessions via the Hub's web console at `http://hub-host:4444/ui` to diagnose capacity issues and session queuing.

Known gotchas

Related routes

Manage parallel Selenium Grid 4 session capacity by tuning Node max-sessions and the New Session Queue instead of only adding more Nodes
selenium.dev · 5 steps · unrated
Register ephemeral browser nodes in Selenium Grid 4 dynamic grid with Docker
selenium.dev · 5 steps · unrated
run selenium grid browser nodes in docker using the official docker-selenium images with shared memory configured
github.com/SeleniumHQ/docker-selenium · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans