“selenium java” jar file vs. “Selenium server standalone” jar file

0 votes
If "selenium-server-standalone" jar file has all the library and methods to run a Selenium script, then why should we use "selenium-java" jars? I read else where that it is used for Language Binding. Is that the case? Can someone please confirm?
Apr 10, 2018 in Selenium by code_ninja
• 6,220 points
1,667 views

1 answer to this question.

+1 vote
Explanation below. Also, there is a similar thread on the same topic here: https://www.edureka.co/community/815/selenium-server-standalone-selenium-webdriver-different

In Selenium RC (Remote Control), it was mandatory to use selenium-server-standalone.jar jar file because RC involves a server and RC Core will then use this server to establish a communication between the browser and your code. All this is powered by the selenium-server-standalone.jar. along with library functions present in your code.

But with Selenium WebDriver, there is no need for selenium-server-standalone.jar jar file, because the WebDriver API directly communicates with the browser's native language and overcomes the Same Origin Policy issue. So, the selenium-java.jar jar files is used instead for testing with WebDriver.

Hope the answer helps.
answered Apr 10, 2018 by nsv999
• 5,090 points
Thanks nsv999 for your answer. Its very clear and understandable. I am upvoting your answer too.

Related Questions In Selenium

0 votes
1 answer

How can I download the *.jar file from http:// seleniumhq.org using selenium WebDriver?

For Selenium Standalone Server use this: profile.setPreference("browser.helperApps.neverAsk.saveToDisk", "application/java-archive"); and ...READ MORE

answered Apr 9, 2018 in Selenium by Martin
• 4,220 points
481 views
0 votes
1 answer

Running a selenium-server-standalone

Below codes will help you: java -jar seleniumjar.jar ...READ MORE

answered Apr 9, 2018 in Selenium by KillerMiller
387 views
0 votes
1 answer

Downloading *.jar file from http:// seleniumhq.org using Selenium WebDriver

For Selenium Standalone Server: profile.setPreference("browser.helperApps.neverAsk.saveToDisk", "application/java-archive"); If downloading ...READ MORE

answered Apr 17, 2018 in Selenium by Shubham
• 13,290 points
375 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,090 points
592 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
901 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
580 views
0 votes
1 answer
0 votes
1 answer

How to handle drop downs using Selenium WebDriver in Java

First, find an XPath which will return ...READ MORE

answered Mar 27, 2018 in Selenium by nsv999
• 5,090 points
1,998 views