I was confused when I first saw that, too.
The standalone-server Jar is used to start a remote Node server or Grid 2 server. Some people start the server from their own code, but that is really the only time you would use that jar in your program.
The Selenium Java Jar file is if you want to run WebDriver directly, or as a client using RemoteWebDriver talking to a Node or Grid 2 server. This is the jar you will definitely be using for writing your Web Driver code.
Mike
On Thursday, February 28, 2013 10:59:20 AM UTC-8, Tushar Roy wrote:
I worked on Selenium RC. We had a small project requirement that time.
We created test scripts using java. We had used the
selenium-server-standalone jar and the selenium-java jar.
Recently we started using webdriver.
We downloaded just the selenium-server-standalone jar, imported it into
java classpath and wrote the java test scripts. No separate Selenium
Client & WebDriver Language Bindings i.e., selenium-java jar was
used this time. The scripts ran very well.
But its bit confusing when to use the
Selenium-server-standalone jar and when to use selenium-java jar(the
Selenium Client & WebDriver Language Bindings)?
whats the difference between these?