NoClassDefFoundError error while using Selenium with java -
i new selenium , trying access google.co.in. code is
public static void main(string[] args) { string baseurl = "https://www.google.co.in/"; webdriver driver = new firefoxdriver(); driver.get(baseurl); }
but getting error says exception in thread "main" java.lang.noclassdeffounderror: com/google/common/base/function
and have written 2 import statements after loading appropriate jar file
import org.openqa.selenium.*; import org.openqa.selenium.firefox.firefoxdriver;
i new both selenium , java..so please help..
you must add together library:
selenium-server-standalone-version.jar
and
selenium-java-version.jar
download here: selenium downloads
java selenium
No comments:
Post a Comment