Compare Selenium Standalone Server & Selenium Server

Understand Selenium Standalone Server to use it efficiently when running Selenium Tests under real user conditions

Get Started free
Home Guide Difference between Selenium Standalone server and Selenium server

Difference between Selenium Standalone server and Selenium server

By Neha Vaidya, Community Contributor -

What is a Selenium Standalone server?

Selenium Standalone server is a java jar file used to start the Selenium server. It is a smart proxy server that allows Selenium tests to route commands to remote web browser instances. The aim is to provide an easy way to run tests in parallel on multiple machines.

Before going any further, let’s take a moment to understand what a Selenium jar is.

Selenium Jar is a group of API’s rolled into one jar for different languages (Java, Python, C#, Javascript, etc.). The client jar can be acquired by tools like Maven or Gradle, basically open-source build automation systems. In case, the dependencies of the jar files are not available, one cannot perform testing in a specific programming language.

To use a Selenium Grid, one can download the selenium-server-standalone JAR file. All the components are available through selenium-server. The standalone JAR contains the remote Selenium server and the client-side bindings which let you perform the testing without the need for any specific jar files.

If you are creating a Maven-based project, then include the following dependencies in pom.xml file

<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server</artifactId>
<version>3.X</version>
</dependency>

Also, you can download the server from the official selenium page and start the server through command line using the command below:

java -jar selenium-server-standalone-3.11.0.jar

Once the server is up and running, execute the test cases. Either proceed with the Selenium Grid setup and perform testing on Grid or run tests with Selenium WebDriver.

Advantages of Selenium Standalone server

  • Allows test distribution over a remote machine or multiple machines.
  • Performs automation testing on different browsers with different versions.
  • A single server performs all the tasks without the help of external drivers.

Talk to an Expert

What is Selenium Server?

Selenium Server is essential to execute Selenium RC tests and WebDriver tests in remote machines through Selenium Grid. Selenium WebDriver is used to perform automation testing of various web-applications against various browsers.

Selenium Server is essentially based on how one intends to use Selenium WebDriver.

While creating a session with the Selenium Server, one must send its desired capabilities. These capabilities provide the Selenium Server with necessary information such as which browser and operating system to use. The Selenium Server then handles all the requests from the BrowserDriver. This also includes automatic shutting down if something goes wrong during a test.

Note: Selenium server is mainly used for the Selenium RC functionality which is now deprecated. Also, there is no such server available for download. To run tests using a remote Selenium Server, one needs an account with a service that hosts the server (and the browser drivers). One such service is BrowserStack.

BrowserStack Automate Banner 1

Advantages of Selenium Server

By gaining clarity on the difference between Selenium Standalone server and Selenium server, testers can use this selenium automation tool (the most popular in the world) with greater levels of sophistication. This article provides this information in some detail so that testers can begin to do so as early as possible.

Tags
Automation Testing Selenium Selenium Webdriver

Featured Articles

findElement and findElements in Selenium

Assert and Verify Methods in Selenium

Automation Tests on Real Devices & Browsers

Seamlessly Run Automation Tests on 3500+ real Devices & Browsers