appcrawler(2.1.3)采坑

转发:https://www.jianshu.com/p/d97290136bad

 

遇到的坑:

问题1:

Exception in thread "main" org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Could not find a driver for platformName 'Android'. Please check your desired capabilities.

解决方案:

以上是用appium 客户端开启的appium服务端口,换成服务端使用命令开启就成功了,appium --session-override 。

 

问题2:

Exception in thread "main" java.util.NoSuchElementException: last of empty ListBuffer。

解决方案:升级为2.4.0版本就可以了。

 

问题3:

Exception in thread "main" scala.MatchError: [app, appium, autoLaunch, autoWebview, deviceName, launchTimeout, newCommandTimeout, noReset, platformName, platformVersion]

解决方案:配置文件中,单独写的androidCapability去掉就可以了,至于原因还不知道。待研究。

posted @ 2020-08-13 14:13  ilspring  阅读(232)  评论(0编辑  收藏  举报