package test;
import org.openqa.selenium.edge.EdgeDriver;
import org.openqa.selenium.edge.EdgeOptions;
public class FirstTest {
public static void main(String[] args) {
System.setProperty("webdriver.edge.driver","C:\\Users\\srava\\Downloads\\edgedriver_win64\\msedgedriver.exe");
EdgeOptions edgeoptions = new EdgeOptions();
EdgeDriver driver = new EdgeDriver(edgeoptions);
driver.get("https://www.facebook.com/");
driver.manage().window().maximize();
}
Getting below Error :
Exception in thread "main" java.lang.NoClassDefFoundError: dev/failsafe/Policy
at org.seleniumhq.selenium.http/org.openqa.selenium.remote.http.ClientConfig.<clinit>(ClientConfig.java:33)
at org.seleniumhq.selenium.edge_driver/org.openqa.selenium.edge.EdgeDriver.<init>(EdgeDriver.java:57)
at org.seleniumhq.selenium.edge_driver/org.openqa.selenium.edge.EdgeDriver.<init>(EdgeDriver.java:49)
at Automation/test.FirstTest.main(FirstTest.java:11)
Caused by: java.lang.ClassNotFoundException: dev.failsafe.Policy
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
... 4 more
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/a4f7a99d-4146-47d2-b1be-cea2e13c99e9n%40googlegroups.com.