-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Closed as not planned
Closed as not planned
Copy link
Labels
I-defectSomething is not working as intendedSomething is not working as intendedJ-awaiting answerQuestion asked of user; a reply moves it to triage againQuestion asked of user; a reply moves it to triage again
Description
What happened?
I am using Eclipse -> Maven with Selenium version 4.25.0 . I have almost tried every solution present on github , youtube and chatgpt still not able to resolve the issue .
i have tried to run my code even after adding dev.failsafe dependency ->
<dependency>
<groupId>dev.failsafe</groupId>
<artifactId>failsafe</artifactId>
<version>3.3.0</version>
</dependency>
still facing the same issue.
here is my pom file ->
pom file .docx
How can we reproduce the issue?
{ public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver", "\"/Users/tusharyadav/Documents/chromedriver\"");
var driver = new ChromeDriver();
driver.get("https://www.google.com");
}
}Relevant log output
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.chrome_driver/org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:84)
at org.seleniumhq.selenium.chrome_driver/org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:52)
at introduction/introduction.Chrome.main(Chrome.java:10)
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:526)
... 4 moreOperating System
macOS Sonoma 14.0
Selenium version
Maven 4.0.0 , selenium-java 4.25.0
What are the browser(s) and version(s) where you see this issue?
Chrome Version 129.0.6668.90 (Official Build) (arm64)
What are the browser driver(s) and version(s) where you see this issue?
chrome driver -129.0.6668.89
Are you using Selenium Grid?
no
Metadata
Metadata
Assignees
Labels
I-defectSomething is not working as intendedSomething is not working as intendedJ-awaiting answerQuestion asked of user; a reply moves it to triage againQuestion asked of user; a reply moves it to triage again