I am getting error when I run script

Hi,

This is the first time I am using Selenium. I developed the below script. When I click Run, I get error. Can you please help?

package selenium;
import org.openqa.selenium.WebDriver;

import org.openqa.selenium.firefox.FirefoxDriver;
public class GOOGLESEARCH {
public static void main(String[] args) {

// TODO Auto-generated method stub
WebDriver driver = new FirefoxDriver();

//driver.get("http://gmail.com");
}
}


Exception in thread “main” java.lang.NoClassDefFoundError: com/google/common/base/Function
at seleniumRC.GOOGLESEARCH.main(GOOGLESEARCH.java:11)
Caused by: java.lang.ClassNotFoundException: com.google.common.base.Function
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)
… 1 more

Default Asked on September 27, 2016 in Selenium WebDriver.
Add Comment
  • 0 Answer(s)
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.