appcrawler(2.1.3)采坑

2019-11-13  本文已影响0人  学习使我快乐啊

遇到的坑:

问题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去掉就可以了,至于原因还不知道。待研究。

上一篇 下一篇

猜你喜欢

热点阅读