Setting Up Selenium Grid for Parallel Testing
Preparing for Grid Setup
Before setting up Grid, you need Java installed on the machine that will act as the Hub, along with the Selenium Server jar file, which contains everything needed to start both Hub and Node processes.
Starting the Hub
The Hub is started first using a simple command that launches the Selenium Server in hub mode, after which it begins listening for incoming Node registrations and test requests on a specified port.
Registering Nodes
Each Node machine runs the Selenium Server in node mode, pointing to the Hub's address so it can register itself along with the browsers and versions it supports.
- Start the Hub: java -jar selenium-server.jar hub
- Start a Node, pointing to the Hub: java -jar selenium-server.jar node --hub http://
:4444 - Verify registration through the Hub's console/dashboard
Grid Setup Checklist
| Requirement | Purpose |
|---|---|
| Java Runtime | Required to run the Selenium Server jar |
| Network Connectivity | Nodes must be able to reach the Hub's IP and port |
| Matching Browser Drivers | Each Node needs drivers for its registered browsers |
Manually configuring Hub and Node machines works, but it becomes far easier to manage using Docker - the next step in scaling Selenium Grid.
Ready to master Selenium Training Course?
Join Uncodemy's hands-on training and build real automation skills with expert mentors.
← Back to Course