执行 selenium 代码时出现故障安全问题

问题描述 投票:0回答:1
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 Automation/LXMedicalPackage.OpenURL.main(OpenURL.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:526)
    ... 4 more

我安装了故障安全罐子但不起作用。

selenium-webdriver
1个回答
-1
投票

我也遇到这个错误。如果找到解决方案请告诉我

© www.soinside.com 2019 - 2024. All rights reserved.