Selenoid is an open-source automation tool for running Selenium tests on containers. It allows you to run your Selenium tests in parallel, making the execution faster and more efficient. Here's how you can install Selenoid on macOS:
Before you can install Selenoid, you need to have Docker installed on your macOS machine. You can download Docker from the official website at https://www.docker.com/products/docker-desktop.
Create a configuration file called browsers.json
that defines the list of browsers and their versions that you want to use with Selenoid. You can find example configuration files on the Selenoid GitHub page at https://github.com/aerokube/selenoid/blob/master/docs/browsers.md.
Here's an example configuration file to get you started:
{
"chrome": {
"default": "80.0",
"versions": {
"80.0": {
"image": "selenoid/chrome:80.0"
}
}
},
"firefox": {
"default": "74.0",
"versions": {
"74.0": {
"image": "selenoid/firefox:74.0"
}
}
}
}
Save this file in a directory that you can easily access later.
Open your terminal and run the following command to install Selenoid:
curl -s https://aerokube.com/cm/bash | bash && ./cm selenoid start --vnc
This command will install Selenoid and start it with VNC (Virtual Network Computing) support, which allows you to view the desktop of the browser during test execution.
Open your web browser and go to http://localhost:4444/status
. You should see a JSON response that shows the status of Selenoid and the available browsers.
If you see this response, Selenoid is successfully installed on your macOS machine, and you can start running your Selenium tests in parallel.
Congratulations, you have successfully installed Selenoid on macOS!
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!