selenium-server-standalone-2.28.0 (Selenium Server (formerly the Selenium RC Server) : Use this if you want to use the Selenium RC or Remote WebDriver or use Grid 2 without needing any additional dependencies .
Note : For normal selenium webdriver automation including this jar is sufficient.
selenium-java-2.28.0 (Selenium Client Driver) : The Java bindings for Selenium 2, including the WebDriver API and the Selenium RC clients. Download this if you plan on just using the client-side pieces of Selenium.
Note : Makes sure you include all jars in lib folder . If you include only the selenium-java-2.28.0 jar then you will get below
Error is as below :
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function
at test.testclass.main(testclass.java:16)
Caused by: java.lang.ClassNotFoundException: com.google.common.base.Function
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Comments
Post a Comment