Installing the Selenium Grid Locally
Last updated on 26 June, 2025You can install Selenium Grid as a standalone setup that includes both the Hub and Node, or deploy the Hub and Nodes separately.
Requirements for Installing the Selenium Grid Locally
To install the Selenium GRID locally, you need the following:
- Selenium Server Standalone package jar
This includes the Selenium Hub, WebDriver, and RC needed to run the Grid. - Java is installed and added to the environment variables
- Installed browser that you want to test
- The appropriate drivers for the test browser were downloaded and added to PATH
Installing Selenium as Standalone Component
- In your command prompt, enter the following command to start the Selenium GRID and download the necessary drivers based on your browser:
Note: The Selenium manager command requires internet access to download the driver.
java -jar selenium-server-<version>.jar standalone--selenium-manager true
Note: This command starts a standalone Selenium Grid using port 4444 by default. You can use an alternate port using the following command: java -jar selenium-server.jar standalone host
When Selenium is installed, it provides the URI for accessing the GRID.
- Navigate to the URI in your browser to open the Selenium console.
- Activate your required Hubs and Nodes.
Installing Selenium as Separate Component
- In your command prompt, enter the following command to install the Selenium server Hub:
java -jar selenium-server-<version>.jar hub
- Enter the following command to start a Node associated with the Hub:
java -jar selenium-server-<version>.jar node --hub http://<hub-ip>:<port number>
Note: The hup-ip is the IP of the Selenium server Hub (usually localhost), and the port number is 4444 by default, unless specified otherwise during setup.