"Independent server Selenium server" jar vs "selenium java" jar

I'm a little confused here. The "selenium-server-standalone" jar contains all the library files to run the script, why do we need to use the "selenium-java" banners?

I read somewhere that it is used for language binding .. if this is true, then please help me understand the meaning of language binding as well.

Thanks.

+6
source share
3 answers

In the previous version of Selenium, which is Selenium RC (Remote Control), it is mandatory that you need to run the selenium-server-standalone.jar jar file, which acts as a server. Selenium RC will then use this server to establish the communication channel between the browser and the code. In addition, this jar file contains all the library functions that will be used in our code.

But in a later version of Selenium, which is Selenium WebDriver, there is no need to run this jar file, as the WebDriver api will directly communicate with the native language of the browser. So this jar file is replaced with selenium-java.jar jar files

Hope this helps.

+2
source

It is mainly used in selenium mesh. Since we use different OS and browsers with different machines, we need to run them at the same time for different reasons. In selenium Grid, we use the machine hub and Node (you can go through selenium tables for more), so to run selenium on different machines with the main machine, we need a stand-alone server.

0
source

WebDriver and Selenium-Server You may or may not need a Selenium Server, depending on how you intend to use Selenium-WebDriver. If your browser and tests will run on the same computer, and your tests will only use the WebDriver API, you do not need to run Selenium-Server; WebDriver will launch the browser directly.

There are several reasons to use Selenium-Server with Selenium-WebDriver.

You use Selenium-Grid to distribute your tests across multiple machines or virtual machines (VMs). You want to connect to a remote computer with a specific browser version that is not located on your current computer. You do not use Java bindings (e.g. Python, C # or Ruby) and would like to use the HtmlUnit driver

http://www.seleniumhq.org/docs/03_webdriver.jsp#how-does-webdriver-drive-the-browser-compared-to-selenium-rc

0
source

Source: https://habr.com/ru/post/989208/


All Articles