I have to click on buttons and I want to do that with a program.
This is my code so far.
and this is the errore I getCode:package javaapplication102; import java.io.IOException; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; public class JavaApplication102 { public static void main(String[] args) throws IOException { WebDriver driver = new FirefoxDriver(); driver.get("http://google.com"); } }
run:
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function
at javaapplication102.JavaApplication102.main(JavaApplication102.java:11)
Caused by: java.lang.ClassNotFoundException: com.google.common.base.Function
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 1 more
what did I do wrong?




Reply With Quote
