Reputation: 155
I can see two repository in Maven Central repo. Please clarify what is difference between both jars
Upvotes: 1
Views: 1115
Reputation: 193108
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
selenium-server
dependency to your pom.xml
.RemoteWebDriver implementation
, then you need to download the selenium-server-standalone.jar
from the Selenium Downloads pageUpvotes: 1
Reputation: 2099
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
.
Upvotes: 1