使用 appium1.8.1 版本可以解决
linux 系统下应该怎么操作呢?
2019-08-07 20:51:21 WARN [AppiumClient.$anonfun$getPageSource$1.340] get page source error
2019-08-07 20:51:21 WARN [Crawler.refreshPage.562] page source get fail, go back
2019-08-07 20:51:21 INFO [Crawler.setElementAction.660] set action to back
2019-08-07 20:51:21 INFO [Crawler.runStartupScript.236] first refresh
2019-08-07 20:51:21 INFO [Crawler.doElementAction.976] current element = _startupActions-Start-0
2019-08-07 20:51:21 INFO [Crawler.doElementAction.977] current index = 0
2019-08-07 20:51:21 INFO [Crawler.doElementAction.978] current action =
2019-08-07 20:51:21 INFO [Crawler.doElementAction.979] current url =
2019-08-07 20:51:21 INFO [Crawler.doElementAction.980] current xpath = startupActions-Start-0
2019-08-07 20:51:21 INFO [Crawler.doElementAction.981] current tag path = _startupActions-Start-0
2019-08-07 20:51:21 INFO [Crawler.doElementAction.982] current file name = _
2019-08-07 20:51:21 INFO [Crawler.doElementAction.983] current uri = startupActions-Start-0 startupActions
Exception in thread "main" java.util.NoSuchElementException: last of empty ListBuffer
at scala.collection.mutable.ListBuffer.last(ListBuffer.scala:401)
at com.testerhome.appcrawler.DataRecord.last(DataRecord.scala:40)
at com.testerhome.appcrawler.Crawler.doElementAction(Crawler.scala:985)
at com.testerhome.appcrawler.Crawler.runStartupScript(Crawler.scala:238)
at com.testerhome.appcrawler.Crawler.start(Crawler.scala:152)
at com.testerhome.appcrawler.AppCrawler$.startCrawl(AppCrawler.scala:344)
at com.testerhome.appcrawler.AppCrawler$.parseParams(AppCrawler.scala:312)
at com.testerhome.appcrawler.AppCrawler$.main(AppCrawler.scala:92)
at com.testerhome.appcrawler.AppCrawler.main(AppCrawler.scala)
运行 2.1.3 版本,appium 是 1.6.4,同样会报错 ,@seveniruby 大神求解
请问你的问题解决了吗?我这边也报错
2.4 遇到这个问题,求问为什么?