请告诉我,如何确保哪个appium java-client jar版本与哪个selenium版本兼容?我尝试过许多不同的appium java-client版本和selenium版本,我面临以下问题:-
org.openqa.selenium.remote.RemoteWebElement cannot be cast to io.appium.java_client.android.AndroidElement with java-client 4.1.2 ans selenium 3.9.1java.lang.NullPointerException with java-client 4.1.0 ans selenium 3.9.1java.lang.NoSuchMethodError with java-client 6.0.0 ans selenium 3.13.0java.lang.NoClassDefFoundError with java-client 6.0.0 ans selenium 3.9.1名单很长。
我尝试了很多事情,最后它对我和Java-client 2.1.0和selenium version 2.45.0起了作用。
这些都是旧版本,我想使用更新一次。有没有办法找出哪个java客户端版本与哪个selenium版本完美地工作?
是否有任何链接,其中有一个列表或什么,而不是尝试所有的排列和组合?
发布于 2018-07-19 07:39:42
发布于 2018-07-19 07:31:25
嗨,您可以使用以下版本:
<dependencies>
<!-- https://mvnrepository.com/artifact/io.appium/java-client -->
<dependency>
<groupId>io.appium</groupId>
<artifactId>java-client</artifactId>
<version>6.0.0-BETA5</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-server -->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server</artifactId>
<version>3.9.1</version>
</dependency>
</dependencies>即使是我也曾面临过这样的问题,经过很少的排列,上述版本对我来说很好。
发布于 2018-07-19 07:32:45
我猜你可能对环境有问题。如果对您来说不太方便,请使用Selenium和Appium的最新驱动程序。
我在你的前一个问题里写了你可以用的例子。这种环境:
如果你仍然有问题,试试这个appium工具,appium-医生。
使用appium医生验证设置
安装后,我们可以运行appium医生来验证设置:
appium-doctor所有设置的绿色复选标记表明,我们可以开始下一章-从其源执行现有的appium演示。
您还可以使用appium GUI工具中的appium医生来验证会话。
如果您没有安装它:
npm install appium-doctor -g然后按照下面的命令检查设置
(安卓)
appium-doctor -- android(ios)
appium-doctor --ios希望这能帮上忙
https://stackoverflow.com/questions/51416139
复制相似问题