eclipse 当我运行appium脚本,然后通过错误如下

kq0g1dla  于 2023-10-18  发布在  Eclipse
关注(0)|答案(2)|浏览(158)
Exception in thread "main" java.lang.NoSuchMethodError: 'void org.openqa.selenium.remote.http.ClientConfig.<init>(java.net.URI, java.time.Duration, java.time.Duration, org.openqa.selenium.remote.http.Filter, java.net.Proxy, org.openqa.selenium.Credentials)'
    at io.appium.java_client.AppiumClientConfig.<init>(AppiumClientConfig.java:62)
    at io.appium.java_client.AppiumClientConfig.defaultConfig(AppiumClientConfig.java:79)
    at io.appium.java_client.remote.AppiumCommandExecutor.<init>(AppiumCommandExecutor.java:109)
    at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:101)
    at io.appium.java_client.ios.IOSDriver.<init>(IOSDriver.java:104)
    at Appiumbase.BaseIOSTest.main(BaseIOSTest.java:61)
kognpnkq

kognpnkq1#

更新appium java-client版本到8.6.0。它在IntelliJ中为我工作。我使用Appium 2和Java 17。

mkh04yzy

mkh04yzy2#

请升级您的Appium java客户端版本:

<!-- https://mvnrepository.com/artifact/io.appium/java-client -->
<dependency>
    <groupId>io.appium</groupId>
    <artifactId>java-client</artifactId>
    <version>8.6.0</version>
</dependency>

相关问题