你好,我用的是 appcrawler 的 2.4.0 版本,跑自动化遍历的时候,按钮的元素 text 是 “去看看 >”,然后就报下面的错了。

android uiautomator: new UiSelector().className("android.widget.TextView").text("去看看 >")

请问有什么办法解决不?

2020-05-19 09:24:26 INFO [Crawler.1123.doElementAction] use last clicked image replace mark
2020-05-19 09:24:26 ERROR [Crawler.193.crawl] crawl not finish, return with exception
2020-05-19 09:24:26 ERROR [Crawler.194.crawl] 20200519092245\13_PreferencesMatchResultActivity.tag=T
extView.depth=9.text=去看看 >.click.png (文件名目录名或卷标语法不正确)
2020-05-19 09:24:26 ERROR [Crawler.195.crawl] FileNotFoundException: 20200519092245\13_PreferencesMa
tchResultActivity.tag=TextView.depth=9.text=去看看 >.click.png (文件名目录名或卷标语法不正确)
2020-05-19 09:24:26 ERROR [Crawler.196.crawl]
2020-05-19 09:24:26 ERROR [Crawler.197.$anonfun$crawl$2] java.io.FileNotFoundException: 202005190922
45\13_PreferencesMatchResultActivity.tag=TextView.depth=9.text=去看看 >.click.png (文件名目录名或
卷标语法不正确)
2020-05-19 09:24:26 ERROR [Crawler.197.$anonfun$crawl$2]        at java.io.FileOutputStream.open0(Na
tive Method)
2020-05-19 09:24:26 ERROR [Crawler.197.$anonfun$crawl$2]        at java.io.FileOutputStream.open(Fil
eOutputStream.java:270)
2020-05-19 09:24:26 ERROR [Crawler.197.$anonfun$crawl$2]        at java.io.FileOutputStream.<init>(F
ileOutputStream.java:213)
2020-05-19 09:24:26 ERROR [Crawler.197.$anonfun$crawl$2]        at java.io.FileOutputStream.<init>(F
ileOutputStream.java:162)
2020-05-19 09:24:26 ERROR [Crawler.197.$anonfun$crawl$2]        at org.apache.commons.io.FileUtils.d
oCopyFile(FileUtils.java:1123)
2020-05-19 09:24:26 ERROR [Crawler.197.$anonfun$crawl$2]        at org.apache.commons.io.FileUtils.c
opyFile(FileUtils.java:1076)
2020-05-19 09:24:26 ERROR [Crawler.197.$anonfun$crawl$2]        at org.apache.commons.io.FileUtils.c
opyFile(FileUtils.java:1028)
2020-05-19 09:24:26 ERROR [Crawler.197.$anonfun$crawl$2]        at com.testerhome.appcrawler.Crawler
.doElementAction(Crawler.scala:1124)
2020-05-19 09:24:26 ERROR [Crawler.197.$anonfun$crawl$2]        at com.testerhome.appcrawler.Crawler
.crawl(Crawler.scala:898)
2020-05-19 09:24:26 ERROR [Crawler.197.$anonfun$crawl$2]        at com.testerhome.appcrawler.Crawler
.$anonfun$crawl$1(Crawler.scala:187)
2020-05-19 09:24:26 ERROR [Crawler.197.$anonfun$crawl$2]        at scala.runtime.java8.JFunction0$mc
V$sp.apply(JFunction0$mcV$sp.java:12)
2020-05-19 09:24:26 ERROR [Crawler.197.$anonfun$crawl$2]        at scala.util.Try$.apply(Try.scala:2
09)
2020-05-19 09:24:26 ERROR [Crawler.197.$anonfun$crawl$2]        at com.testerhome.appcrawler.Crawler
.crawl(Crawler.scala:187)
2020-05-19 09:24:26 ERROR [Crawler.197.$anonfun$crawl$2]        at com.testerhome.appcrawler.Crawler
.start(Crawler.scala:170)
2020-05-19 09:24:26 ERROR [Crawler.197.$anonfun$crawl$2]        at com.testerhome.appcrawler.AppCraw
ler$.startCrawl(AppCrawler.scala:322)
2020-05-19 09:24:26 ERROR [Crawler.197.$anonfun$crawl$2]        at com.testerhome.appcrawler.AppCraw
ler$.parseParams(AppCrawler.scala:290)
2020-05-19 09:24:26 ERROR [Crawler.197.$anonfun$crawl$2]        at com.testerhome.appcrawler.AppCraw
ler$.main(AppCrawler.scala:91)
2020-05-19 09:24:26 ERROR [Crawler.197.$anonfun$crawl$2]        at com.testerhome.appcrawler.AppCraw
ler.main(AppCrawler.scala)
2020-05-19 09:24:26 ERROR [Crawler.198.crawl] create new session
2020-05-19 09:24:26 INFO [Crawler.214.restart] execute shell on restart
2020-05-19 09:24:26 INFO [Crawler.217.restart] restart appium
2020-05-19 09:24:26 INFO [Crawler.250.setupAppium] afterPageMax=2
2020-05-19 09:24:26 INFO [Crawler.273.setupAppium] use AppiumClient
2020-05-19 09:24:26 INFO [Crawler.274.setupAppium] Map(appium -> http://127.0.0.1:4723/wd/hub, noRes
et -> true, dontStopAppOnReset -> true, app -> , fullReset -> false)
2020-05-19 09:24:26 INFO [AppiumClient.30.initLog] already exist
Exception in thread "main" scala.MatchError: [app, appium, deviceName, dontStopAppOnReset, fullReset
, noReset] (of class java.util.Collections$UnmodifiableSet)
        at com.testerhome.appcrawler.driver.AppiumClient.appium(AppiumClient.scala:94)
        at com.testerhome.appcrawler.driver.AppiumClient.<init>(AppiumClient.scala:40)
        at com.testerhome.appcrawler.Crawler.setupAppium(Crawler.scala:277)
        at com.testerhome.appcrawler.Crawler.restart(Crawler.scala:221)
        at com.testerhome.appcrawler.Crawler.crawl(Crawler.scala:201)
        at com.testerhome.appcrawler.Crawler.start(Crawler.scala:170)
        at com.testerhome.appcrawler.AppCrawler$.startCrawl(AppCrawler.scala:322)
        at com.testerhome.appcrawler.AppCrawler$.parseParams(AppCrawler.scala:290)
        at com.testerhome.appcrawler.AppCrawler$.main(AppCrawler.scala:91)
        at com.testerhome.appcrawler.AppCrawler.main(AppCrawler.scala)


↙↙↙阅读原文可查看相关链接,并与作者交流