求助 appcrawler中getAvailableElement调用条件

2022-03-22 19:36:25 DEBUG [Crawler.1266.$anonfun$getElementByTriggerActions$2] finding Step(List(),null,List(),//[contains(@name, ‘FBYHomeView’)]/parent:://,null,List(),-1)
2022-03-22 19:36:25 TRACE [XPathUtil$.233.getNodeListByXPath] nodeList length 0 with //
[contains(@name, ‘FBYHomeView’)]/parent:://
2022-03-22 19:36:25 TRACE [XPathUtil$.336.getNodeListByXPath] filted node list length 0
2022-03-22 19:36:25 TRACE [Crawler.1275.$anonfun$getElementByTriggerActions$2] not found trigger //[contains(@name, ‘FBYHomeView’)]/parent:://*
2022-03-22 19:36:25 DEBUG [Crawler.396.needBackToApp] ListBuffer( )
2022-03-22 19:36:25 DEBUG [Crawler.397.needBackToApp] List( , , , , , PhotoLibs, PhotoLibs, PhotoLibs, PhotoLibs, )
2022-03-22 19:36:25 DEBUG [Crawler.444.needBackToPage] urlStack=Stack( .No SIM) baseUrl=List() maxDepth=10
2022-03-22 19:36:25 TRACE [Crawler.508.$anonfun$getAvailableElement$1] selectedList xpath = //[contains(@name, ‘XCUIElementTypeTable’)]/XCUIElementTypeCell[contains(@name, ‘Text’) and @value!=’’]
2022-03-22 19:36:25 TRACE [XPathUtil$.233.getNodeListByXPath] nodeList length 0 with //
[contains(@name, ‘XCUIElementTypeTable’)]/XCUIElementTypeCell[contains(@name, ‘Text’) and @value!=’’]
2022-03-22 19:36:25 TRACE [XPathUtil$.336.getNodeListByXPath] filted node list length 0
2022-03-22 19:36:25 TRACE [Crawler.508.$anonfun$getAvailableElement$1] selectedList xpath = //[contains(name(), ‘StaticText’)]
2022-03-22 19:36:25 TRACE [XPathUtil$.233.getNodeListByXPath] nodeList length 5 with //
[contains(name(), ‘StaticText’)]
2022-03-22 19:36:25 TRACE [XPathUtil$.336.getNodeListByXPath] filted node list length 5
2022-03-22 19:36:25 TRACE [Crawler.512.$anonfun$getAvailableElement$3] .No SIM.tag=XCUIElementTypeStaticText.depth=12.id=No SIM.name=No SIM.text=No SIM
2022-03-22 19:36:25 TRACE [Crawler.512.$anonfun$getAvailableElement$3] .No SIM.tag=XCUIElementTypeStaticText.depth=12.id=19:36.name=19:36.text=19:36
2022-03-22 19:36:25 TRACE [Crawler.512.$anonfun$getAvailableElement$3] .No SIM.tag=XCUIElementTypeStaticText.depth=12.id=100%.name=100%.text=100%

发现如果没有调用getAvailableElement,页面上的元素不能被点击 直接backapp了

2022-03-22 19:37:01 WARN [Crawler.402.needBackToApp] jump to other app appName=PhotoLibs lastAppName= PhotoLibs
2022-03-22 19:37:01 TRACE [XPathUtil$.233.getNodeListByXPath] nodeList length 1 with //
2022-03-22 19:37:01 TRACE [XPathUtil$.336.getNodeListByXPath] filted node list length 1
2022-03-22 19:37:01 INFO [Crawler.756.beforeElementAction] PhotoLibs.Back.tag=BackApp.depth=1.id=BackApp.name=BackApp
2022-03-22 19:37:01 TRACE [Crawler.762.beforeElementAction] beforeElementAction
2022-03-22 19:37:01 INFO [Crawler.1043.doElementAction] current index = 12
2022-03-22 19:37:01 INFO [Crawler.1044.doElementAction] current xpath = //XCUIElementTypeApplication[@name=‘PhotoLibs’ and @label=‘PhotoLibs’]
2022-03-22 19:37:01 INFO [Crawler.1045.doElementAction] current action = _BackApp
2022-03-22 19:37:01 INFO [Crawler.1046.doElementAction] current element = PhotoLibs.Back.tag=BackApp.depth=1.id=BackApp.name=BackApp
2022-03-22 19:37:01 INFO [Crawler.1047.doElementAction] current url = PhotoLibs.Back
2022-03-22 19:37:01 INFO [Crawler.1048.doElementAction] current tag path = //XCUIElementTypeApplication[@name=‘PhotoLibs’ and @label=‘PhotoLibs’]
2022-03-22 19:37:01 INFO [Crawler.1049.doElementAction] current file name = PhotoLibs.Back.tag=BackApp.depth=1.id=BackApp.name=BackApp