Cześć,
Napisałem prosty skrypt:
Ma on po prostu otworzyć przeglądarkę i wejść na stronę googla
package wp;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class PG1 {
public static void main(String args[]) {
System.setProperty("webdriver.gecko.driver", "C:\\Users\\Tomek\\Desktop\\IT\\geckodriver\\geckodriver.exe");
WebDriver driver = new FirefoxDriver();
System.out.println("Zaczynamy");
driver.get("http://google.com");
}
}
Wyskakuje mi błąd:
"Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/exec/Executor"
i nie mam pojęcia co jest źle. Pomożecie?