The flexible, Java-based software can be deployed across multiple machines in grid fashion, or run in
Standalone mode
as a comprehensive solution on a single machine.
This guide show you how to start a Standalone installation as soon as your server boots, and keep it running continuously in the background.
It will only take a few minutes to put that in place.
-
If necessary, download the Selenium Server JAR file.
Save it to a suitable location and make sure you can start it from a Java command line:
java -jar selenium-server-<version>.jar standalone
For this guide, we downloaded version 4.43.0 (selenium-server-4.43.0.jar) and placed it in "C:\SeleniumServer". We were able to launch Selenium Standalone without trouble:
-
Download and install AlwaysUp, if necessary.
-
Start AlwaysUp.
-
Select Application > Advisor to launch the Application Advisor:
-
Click Next to move past the welcome page:
-
Since Selenium Server is a Java based product, choose Java (JAR/WAR) from the list of applications:
Click Next to proceed.
-
AlwaysUp will spend a few seconds collecting information on your Java installation.
Afterwards, you will be prompted to enter the full path to the Selenium Server JAR file.
That's "C:\SeleniumServer\selenium-server-4.43.0.jar" on our system:
Click Next to move on.
-
Selenium should run in your Windows account, where you've installed Java and configured the required environment variables (e.g. JAVA_HOME).
Please enter your password:
Click Next.
-
The application advisor is done collecting the settings for installing Selenium Server as a Windows Service.
Click Next to launch the Add Application window:
-
Almost done! We must make one modification to run Selenium in Standalone mode.
In the Arguments field, add this parameter at the end of the text:
standalone
And since we're here, you might as well change the Name to "Selenium Server" (or anything else you like):
Click the Save button to complete the process.
-
In a few seconds, a new entry will appear in the AlwaysUp window.
Selenium Server is now installed as a Windows Service but it's not running yet (it's in the "Stopped" state):
-
To start your new Selenium Server service, choose Application > Start "Selenium Server".
The state will transition to "Running" and your testing framework will come to life in the background:
-
That's it! Next time your computer boots, Selenium Grid Server will start up immediately, before anyone logs on.
We encourage you to edit the entry in AlwaysUp and check out the advanced settings that may be good for your specific situation.
For example, you can: