I can see two repository in Maven Central repo. Please clarify what is difference between both jars
2 Answers
This is explained in the Selenium documentation:
You may, or may not, need the Selenium Server, depending on how you intend to use Selenium-WebDriver. If your browser and tests will all run on the same machine, and your tests only use the WebDriver API, then you do not need to run the Selenium-Server; WebDriver will run the browser directly.
There are some reasons though to use the Selenium-Server with Selenium-WebDriver.
- You are using Selenium-Grid to distribute your tests over multiple machines or virtual machines (VMs).
- You want to connect to a remote machine that has a particular browser version that is not on your current machine.
- You are not using the Java bindings (i.e. Python, C#, or Ruby) and would like to use HtmlUnit Driver
The selenium-server-standalone.jar
was used in older Selenium versions (with Selenium Server).
Newer versions of Selenium (WebDriver API) uses selenium-java.jar
.

- 1,999
- 18
- 36
As per the Selenium Server jar releases, selenium-server-standalone jars
are no more pushed to the Maven Artifact.
Till Selenium Release v2.53.0, selenium-server-standalone jars
were pushed to the Maven Artifact separately as Jenkins Releases. But starting Selenium Release v3.x only the selenium-server jars and the selenium-java client jars are pushed to the Maven Artifact
Solution
- If you running everything on the same machine, then using the selenium-java client maven dependency should be just fine.
- If you running something on a machine that's not your desktop, then using the selenium-server maven dependency must be used. In this case you can also embed the Selenium server into your own project by adding the
selenium-server
dependency to yourpom.xml
. - If you intent to use the
RemoteWebDriver implementation
, then you need to download theselenium-server-standalone.jar
from the Selenium Downloads page

- 183,867
- 41
- 278
- 352