seveniruby/AppCrawler

ios获取page source后报错

wsyu52 opened this issue · 0 comments

如题

工具 版本
ios 12.1
xcode 11.5
appium 1.17.1
appcrawler 2.4.0

报如下错误

2020-07-01 17:42:21 INFO [Crawler.147.start] waiting for app load
2020-07-01 17:42:27 INFO [Crawler.149.start] driver=null
2020-07-01 17:42:27 INFO [Crawler.150.start] get screen info
2020-07-01 17:42:27 INFO [AppiumClient.120.getDeviceInfo] screenWidth=1024 screenHeight=768
2020-07-01 17:42:27 INFO [Crawler.627.refreshPage] refresh page
2020-07-01 17:42:27 INFO [AppiumClient.102.getPageSourceWithRetry] start to get page source from appium
2020-07-01 17:42:39 TRACE [AppiumClient.109.$anonfun$getPageSourceWithRetry$1] get page source success
2020-07-01 17:42:39 INFO [AppiumClient.117.$anonfun$getPageSourceWithRetry$1] xml format
Exception in thread "main" java.lang.NoSuchMethodError: com.sun.org.apache.xml.internal.serialize.OutputFormat.<init>(Lorg/w3c/dom/Document;)V
	at com.testerhome.appcrawler.XPathUtil$.toPrettyXML(XPathUtil.scala:35)
	at com.testerhome.appcrawler.driver.ReactWebDriver.$anonfun$getPageSourceWithRetry$1(ReactWebDriver.scala:132)
	at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:156)
	at com.testerhome.appcrawler.driver.ReactWebDriver.getPageSourceWithRetry(ReactWebDriver.scala:106)
	at com.testerhome.appcrawler.driver.ReactWebDriver.getPageSourceWithRetry$(ReactWebDriver.scala:99)
	at com.testerhome.appcrawler.driver.AppiumClient.getPageSourceWithRetry(AppiumClient.scala:28)
	at com.testerhome.appcrawler.Crawler.refreshPage(Crawler.scala:628)
	at com.testerhome.appcrawler.Crawler.start(Crawler.scala:152)
	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)