Tuesday, March 15, 2016

Jars and Difference between Selenium standalone server and Selenium-Java-Jar


http://stackoverflow.com/questions/36018648/selenium-standalone-server-and-selenium-java-jar-usage-specifics


The selenium standalone server contains everything i need to run my scripts on local machine or remote machine or Grid. I understand that it has both server side and client side bindings'.
If i use Selenium-Java-Jar, i can run scripts on my local machine. It has only client side bindings'. But again for Remote or grid i would need standalone server separately.
Considering all this why would i need to use Selenium-Java-Jar over selenium standalone server? Does it offer any thing good in terms of speed? What points scores over selenium standalone server for people to use Selenium-Java-Jar? Is it something to do with selenium standalone server supporting RC style scripts whereas Selenium-Java-Jar not supporting the same?



What are the Implementations differences between 'Selenium-server-standalone.jar' and 'Selenium Client & WebDriver'. Following is the link from SeleniumHQ.org website [http://www.seleniumhq.org/download/]..
  1. http://selenium-release.storage.googleapis.com/2.44/selenium-server-standalone-2.44.0.jar
  2. "http://selenium-release.storage.googleapis.com/2.44/selenium-java-2.44.0.zip"
I know first one is Formerly known as Selenium RC and second one is Selenium 2.0(Webdriver). But Is the latest version supporting all the jars in Webdriver in Selenium Server. I have only Selenium Server available, Did all the method's in Selenium Webdriver supports in Selenium Server? likewise, what are the differences between the jars in it?
Selenium WebDriver 2.0 - helps to write scripts for automating browsers..this package provides us with classes & methods to achieve automation. After writing scripts we can run them on LOCAL MACHINE and see automation ourselves. WebDriver projects were merged with selenium RC to overcome the drawbacks of selenium RC making it selenium WebDriver 2.0
Selenium Server: Now once i have my scripts (as mentioned above),To run scripts on REMOTE MACHINES (Test Beds) and NOT ON LOCAL MACHINE we do it using selenium server. So in short Selenium Webdriver works together with Selenium Server..they co-exist to help and not to replace each other.

Why importing Jar files:


To access selenium class functions like getTtile(), getText(), getAlert() or getConfirmation() etc.. we might need to import jar files.
We have library files in Jar fiiles that are embeded and put together so that the person who imports jar files, will be able to use the fuctions in the files direclty. Somelines public class files, If you import you could be able to use the methods(functions) of that class.


Scenario:

If you see that your script is not able to detect the inbuilt functions then it means you have not imported proper jar files( here in selenium we have only two already mentioned above jar files).




1 comment:

  1. Now i can figure out the difference..Thanks for sharing your knowledge.

    ReplyDelete