Error when I try to run my first program after setup

328 views
Skip to first unread message

Sravanthi T

unread,
Dec 1, 2023, 12:58:10 AM12/1/23
to Selenium Users

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

venkatesh iyengar

unread,
Dec 2, 2023, 4:33:08 AM12/2/23
to seleniu...@googlegroups.com
Can you please provide me the information  regarding selenium version and browser version which you have used?

Regards,
Venkatesh

--
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.
Reply all
Reply to author
Forward
0 new messages