Selenoid is an open-source implementation of Selenium WebDriver that is designed to be lightweight, scalable, and fast. It provides a web interface for managing Docker containers that contain browser instances, and helps to speed up the execution of tests that require the use of multiple browsers.
In this tutorial, we will guide you through the steps of installing Selenoid on Fedora Server Latest.
Before we get started, there are a few requirements that you will need to meet:
If you do not have Docker installed on your server, you can install it by running the following command:
sudo dnf install docker-ce docker-ce-cli containerd.io
To install Selenoid, follow these steps:
First, create a configuration file for Selenoid. You can use the following command to create a default configuration file:
sudo mkdir -p /etc/selenoid/
sudo curl -L https://aerokube.com/selenoid/latest-release/download/linux_amd64/selenoid > /etc/selenoid/selenoid
sudo curl -L https://aerokube.com/selenoid/latest-release/download/linux_amd64/selenoid-ui > /etc/selenoid/selenoid-ui
sudo chmod +x /etc/selenoid/selenoid /etc/selenoid/selenoid-ui
Next, create a Docker network that Selenoid can use by running the following command:
sudo docker network create selenoid
Now, start Selenoid by running the following command:
sudo docker run -d --name selenoid --network selenoid -p 4444:4444 -v /var/run/docker.sock:/var/run/docker.sock -v /etc/selenoid:/etc/selenoid aerokube/selenoid:latest-release
If you want to use Selenoid UI, start it by running the following command:
sudo docker run -d --name selenoid-ui --network selenoid -p 8090:8080 aerokube/selenoid-ui --selenoid-uri=http://selenoid:4444
Finally, test Selenoid by opening a web browser and navigating to http://<server-ip>:8090/
. You should see the Selenoid UI web interface, and you can now start testing with Selenium.
Congratulations! You have successfully installed Selenoid on your Fedora Server Latest installation.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!