appcrawler2.7.0 屏幕滑动的driver.swipe方法换了吗?2.4版本正常2.7版本使用怎么报错了

配置如下:
afterElement:

  • xpath: //* action:driver.swipe(0.5, 0.9, 0.5, 0.8)

报错日志:
:WARN No appenders could be found for logger (com.ceshiren.appcrawler.utils.Log).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
2021-11-05 14:27:33 DEBUG [Log.191.parseParams] config=
2021-11-05 14:27:33 DEBUG [Log.192.parseParams] Param(,20211105cap2.7.0.yml,false,false,2000,false,Map(),)
2021-11-05 14:27:33 INFO [Log.196.parseParams] Find Conf F:\appium\20211105cap2.7.0.yml
Exception in thread “main” com.fasterxml.jackson.databind.JsonMappingException: while scanning a simple key
in ‘reader’, line 311, column 3:
action:driver.swipe(0.5, 0.9, 0. …
^
could not find expected ‘:’
in ‘reader’, line 312, column 1:
afterElementWait: 500

app内部菜单模块太多,每次需要滑动一点屏幕,之前是用的swipe(0.5, 0.95, 0.5, 0.92)方法,现在2.7.0之后发现不滑动了,想问一下如何滑动屏幕

滑动并没有剩下,报错日志截取如下:
50 INFO [Log.746.afterElementAction] afterElementAction eval
2021-11-05 16:48:50 INFO [Log.70.dsl] eval driver.swipe(0.5, 0.95, 0.5, 0.92)
import sys.process._
val driver: com.ceshiren.appcrawler.driver.ReactWebDriver = com.ceshiren.appcrawler.driver.AppiumClient@17fede14
def crawl(depth: Int): Unit
2021-11-05 16:48:53 INFO [Log.94.eval] driver.swipe(0.5, 0.95, 0.5, 0.92)
java.lang.BootstrapMethodError: java.lang.UnsupportedClassVersionError: com/ceshiren/appcrawler/AppiumTouchAction has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at com.ceshiren.appcrawler.driver.AppiumClient.swipe(AppiumClient.scala:103)
… 39 elided
Caused by: java.lang.UnsupportedClassVersionError: com/ceshiren/appcrawler/AppiumTouchAction has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
… 40 more
2021-11-05 16:48:54 INFO [Log.95.eval] Error
2021-11-05 16:48:54 INFO [Log.96.eval] eval finish
2021-11-05 16:48:54 INFO [Log.72.dsl] ()
2021-11-05 16:48:54 INFO [Log.646.refreshPage] refresh page
2021-11-05 16:48:54 INFO [Log.93.getPageSourceWithRetry] start to get page source from appium

应该是java版本问题
现在需要55版本的jre了

换版本后解决了swipe滑动报错的问题。感谢大佬~

还有个问题想咨询下:怎么控制按照menu_name 菜单名称遍历,目前发现遍历2个菜单后就直接返回了,无法遍历全部的菜单名称,这种情况下是哪个参数控制遍历完之后返回到菜单主界面呢,我配置下面的好像没有生效,麻烦大佬帮忙解答一下
baseUrl:

关闭