How to Install Selenoid on Windows 10

Selenoid is an open-source Selenium Hub server that allows parallel execution of Selenium tests in Docker containers. In this tutorial, we will explain how to install Selenoid on Windows 10.

Prerequisites

  • Windows 10 (64-bit version)
  • Docker Engine installed and running
  • Administrative privileges

Step 1: Download Selenoid Configuration File

Go to the official website of Selenoid and download the latest version of selenoid.json configuration file.

Step 2: Create Selenoid Home Directory

Create Selenoid home directory to store Selenoid configuration files and images.

mkdir %USERPROFILE%\.selenoid

Step 3: Copy Configuration File

Copy the selenoid.json file to the Selenoid home directory you created in step 2.

copy selenoid.json %USERPROFILE%\.selenoid\

Step 4: Install Selenoid Docker Image

Run the following command to install Selenoid Docker image.

docker run -d --name selenoid -v /var/run/docker.sock:/var/run/docker.sock -v %USERPROFILE%\.selenoid:/etc/selenoid/:ro -p 4444:4444 aerokube/selenoid:latest-release

The above command will download the latest version of Selenoid Docker image and run it.

  • -d runs the container in detached mode
  • --name specifies the container name as 'selenoid'
  • -v mounts the docker socket to the container to manage other Docker containers
  • -v mounts the Selenoid home directory to the container at /etc/selenoid/ in read-only mode
  • -p maps port 4444 inside the container to port 4444 on the host machine
  • aerokube/selenoid:latest-release specifies the Docker image to run

Step 5: Check Selenoid Installation

To check if Selenoid is installed correctly, navigate to http://localhost:4444/status in your preferred web browser.

If the page displays "Selenoid is up and running," then you have successfully installed Selenoid on your Windows 10 machine.

Conclusion

In this tutorial, we learned how to install Selenoid on Windows 10. Selenoid provides an efficient way to execute Selenium tests in Docker containers, enabling parallel execution and simplified setup.