2023-01-29 18:02:28 INFO [AppCrawler$.326.addLogFile] ------------------------------------------------- appcrawler v2.7.4 全平台自动遍历测试工具 Q&A: https://ceshiren.com/c/opensource/appcrawler author: 思寒_seveniruby 天马 霍格沃兹测试开发学社 ------------------------------------------------- 2023-01-29 18:02:28 INFO [AppCrawler$.329.addLogFile] result directory = 20230129180227_com.haixue.saas 2023-01-29 18:02:28 DEBUG [AppCrawler$.44.getGlobalEncoding] default Charset=UTF-8 2023-01-29 18:02:28 DEBUG [AppCrawler$.45.getGlobalEncoding] default file.encoding=utf-8 2023-01-29 18:02:28 DEBUG [AppCrawler$.46.getGlobalEncoding] project directory=/Users/apple/Documents/project_git/appcrawler/AppCrawler 2023-01-29 18:02:28 DEBUG [Crawler.123.start] crawl config 2023-01-29 18:02:28 DEBUG [Crawler.124.start] --- capabilityDescription: "appium的capability通用配置,其中automationName代表自动化的驱动引擎,除了支持appium的\ 所有引擎外,额外增加了adb和selenium的支持" capability: newCommandTimeout: 120 appActivity: ".SplashActivity" launchTimeout: 120000 platformName: "Android" appium: "http://127.0.0.1:4723/wd/hub" dontStopAppOnReset: "false" appPackage: "com.haixue.saas" androidInstallTimeout: 180000 fullReset: "false" autoWebview: "false" autoLaunch: "true" noReset: "true" waitAppLoadedTimeoutDescription: "隐式等待app加载完成的最大时间 ms" waitAppLoadedTimeout: 10000 waitAppLoadedDescription: "显式等待app加载完成的判断条件" waitAppLoaded: - given: [] when: null then: [] xpath: "//*[contains(@text, 'App')]" action: "" actions: [] times: -1 implicitlyWaitTestCaseDescription: "在测试用例执行阶段隐式等待一个控件出现的最大时间 ms" implicitlyWaitTestCase: 3000 implicitlyWaitCrawlDescription: "在遍历阶段隐式等待一个控件出现的最大时间 ms" implicitlyWaitCrawl: 0 testcaseDescription: "测试用例设置,用于遍历开始之前的一些前置操作,比如自动登录" testcase: name: "AppCrawler TestCase" steps: - given: [] when: null then: [] xpath: "/*/*" action: "Thread.sleep(1000)" actions: [] times: -1 maxTimeDescription: "最大运行时间" maxTime: 10800 maxDepthDescription: "默认的最大深度10, 结合baseUrl可很好的控制遍历的范围" maxDepth: 10 selectedListDescription: "默认遍历列表,只有出现在这个列表里的控件范围才会被遍历" selectedList: - given: [] when: null then: [] xpath: "//*[@text='考试中心']" action: "" actions: [] times: -1 - given: [] when: null then: [] xpath: "//*[contains(name(), 'Button')]" action: "" actions: [] times: -1 - given: [] when: null then: [] xpath: "//*[contains(name(), 'Text') and @clickable='true' and string-length(@text)<10]" action: "" actions: [] times: -1 - given: [] when: null then: [] xpath: "//*[@clickable='true']//*[contains(name(), 'Text') and string-length(@text)<10]" action: "" actions: [] times: -1 - given: [] when: null then: [] xpath: "//*[contains(name(), 'Image') and @clickable='true']" action: "" actions: [] times: -1 - given: [] when: null then: [] xpath: "//*[@clickable='true']/*[contains(name(), 'Image')]" action: "" actions: [] times: -1 - given: [] when: null then: [] xpath: "//*[contains(name(), 'Image') and @name!='']" action: "" actions: [] times: -1 - given: [] when: null then: [] xpath: "//*[contains(name(), 'Text') and @name!='' and string-length(@label)<10]" action: "" actions: [] times: -1 - given: [] when: null then: [] xpath: "//a" action: "" actions: [] times: -1 - given: [] when: null then: [] xpath: "//*[contains(@class, 'Text') and @clickable='true' and string-length(@text)<10]" action: "" actions: [] times: -1 - given: [] when: null then: [] xpath: "//*[@clickable='true']//*[contains(@class, 'Text') and string-length(@text)<10]" action: "" actions: [] times: -1 - given: [] when: null then: [] xpath: "//*[contains(@class, 'Image') and @clickable='true']" action: "" actions: [] times: -1 - given: [] when: null then: [] xpath: "//*[@clickable='true']/*[contains(@class, 'Image')]" action: "" actions: [] times: -1 - given: [] when: null then: [] xpath: "//*[@clickable='true' and contains(@class, 'Button')]" action: "" actions: [] times: -1 triggerActionsDescription: "在遍历过程中需要随时处理的一些操作,比如弹框、登录等" triggerActions: - given: [] when: null then: [] xpath: "permission_allow_button" action: "" actions: [] times: 3 - given: [] when: null then: [] xpath: "允许" action: "" actions: [] times: 3 blackListDescription: "黑名单列表 matches风格, 默认排除内容包含2个数字的控件" blackList: - given: [] when: null then: [] xpath: ".*[0-9]{2}.*" action: "" actions: [] times: -1 - given: [] when: null then: [] xpath: "Get Music" action: "" actions: [] times: -1 firstListDescription: "优先遍历列表,同时出现在selectedList与firstList中的控件会被优先遍历" firstList: [] lastListDescription: "最后遍历列表,同时出现在selectedList与lastList中的控件会被最后遍历" lastList: - given: [] when: null then: [] xpath: "//*[@selected='true']/..//*" action: "" actions: [] times: -1 - given: [] when: null then: [] xpath: "//*[@selected='true']/../..//*" action: "" actions: [] times: -1 backButtonDescription: "后退按钮列表,默认在所有控件遍历完成后,才会最后点击后退按钮。目前具备了自动判断返回按钮的能力,默认不需要配置" backButton: - given: [] when: null then: [] xpath: "Navigate up" action: "" actions: [] times: -1 xpathAttributesDescription: "在生成一个控件的唯一定位符中应该包含的关键属性" xpathAttributes: - "name()" - "name" - "label" - "value" - "resource-id" - "content-desc" - "text" - "id" - "name" - "innerText" - "tag" - "class" sortByAttributeDescription: "陆续根据属性进行遍历排序微调,depth表示从dom中最深层的控件开始遍历,list表示dom中列表优先,\ selected表示菜单最后遍历,这是默认规则,一般不需要改变" sortByAttribute: - "depth" - "list" - "selected" findByDescription: "默认生成控件唯一定位符的表达式风格,可选项 default|android|id|xpath,默认会自动判断是否使用android定\ 位或者ios定位" findBy: "xpath" baseUrlDescription: "设置一个起始点,从这个起始点开始计算深度,比如默认从登录后的界面开始计算" baseUrl: [] appWhiteListDescription: "app白名单,允许在这些app里进行遍历" appWhiteList: [] urlBlackListDescription: "url黑名单,用于排除某些页面的遍历" urlBlackList: [] urlWhiteListDescription: "url白名单,仅在这些界面内遍历" urlWhiteList: [] beforeRestartDescription: "在重启session之前做的事情" beforeRestart: [] beforeElementDescription: "在遍历每个控件之前默认执行的动作" beforeElement: [] afterElementDescription: "在遍历每个控件之后默认执行的动作" afterElement: [] afterElementWaitDescription: "在遍历每个控件之后默认等待的时间,用于等待新页面加载" afterElementWait: 1000 afterAllDescription: "在遍历完当前页面内的所有控件后,是否需要刷新或者滑动" afterAll: [] afterAllMaxDescription: "afterAll的最大重试次数,比如连续滑动2次都没新元素即取消" afterAllMax: 2 tagLimitMaxDescription: "相似控件最多点击几次" tagLimitMax: 20 tagAttributesDescription: "用于判断是否是相似控件的关键属性,祖先节点具备相同的属性认为是相似" tagAttributes: - "name()" - "name" - "label" - "resource-id" - "content-desc" - "id" - "name" - "tag" - "class" tagLimitDescription: "设置部分相似控件的最大遍历次数" tagLimit: - given: [] when: null then: [] xpath: "确定" action: "" actions: [] times: 1000 - given: [] when: null then: [] xpath: "取消" action: "" actions: [] times: 1000 - given: [] when: null then: [] xpath: "share_comment_guide_btn_name" action: "" actions: [] times: 1000 - given: [] when: null then: [] xpath: "//*[contains(@class, 'List')]//*" action: "" actions: [] times: 2 assertGlobalDescription: "全局断言" assertGlobal: [] suiteNameDescription: "报告中的测试套件名字可以由列表内的控件内容替换,增强报告中关键界面的辨识度" suiteName: - "//*[@selected='true']//android.widget.TextView/@text" screenshotDescription: "是否截图" screenshot: true reportTitleDescription: "报告的title" reportTitle: "AppCrawler" resultDirDescription: "结果目录,如果为空会自动创建对应时间戳_报名的结果目录" resultDir: "20230129180227_com.haixue.saas" showCancelDescription: "是否展示跳过的控件记录" showCancel: true pluginListDescription: "插件列表,暂时禁用,太高级了,很多人不会用" Description: "。在selectedList firstList lastList等很多配置中,需要填充的是测试步骤Step类型。Step类型由given(\ 满足条件)when(条件满足的行为)then(断言)三部分组成。Step可以简化为xpath(定位表达式,支持xpath 正则 包含关系)与action(点击\ \ 输入等行为)。" pluginList: [] 2023-01-29 18:02:28 INFO [Crawler.126.start] set xpath attribute with List(name(), name, label, value, resource-id, content-desc, text, id, name, innerText, tag, class) 2023-01-29 18:02:28 INFO [Crawler.130.start] set tag attribute with List(name(), name, label, resource-id, content-desc, id, name, tag, class) 2023-01-29 18:02:28 INFO [Crawler.100.$anonfun$loadPlugins$3] com.ceshiren.appcrawler.plugin.TagLimitPlugin@4b629f13 2023-01-29 18:02:28 INFO [Crawler.100.$anonfun$loadPlugins$3] com.ceshiren.appcrawler.plugin.ReportPlugin@70925b45 2023-01-29 18:02:28 INFO [Crawler.100.$anonfun$loadPlugins$3] com.ceshiren.appcrawler.plugin.FreeMind@1b9ea3e3 2023-01-29 18:02:28 INFO [Plugin.22.init] com.ceshiren.appcrawler.plugin.TagLimitPlugin init 2023-01-29 18:02:28 INFO [Plugin.22.init] com.ceshiren.appcrawler.plugin.ReportPlugin init 2023-01-29 18:02:28 INFO [Plugin.22.init] com.ceshiren.appcrawler.plugin.FreeMind init 2023-01-29 18:02:28 INFO [ReportFactory$.33.initReportPath] reportPath=/Users/apple/Documents/project_git/appcrawler/20230129180227_com.haixue.saas 2023-01-29 18:02:28 INFO [ReportFactory$.35.initReportPath] testcaseDir=/Users/apple/Documents/project_git/appcrawler/20230129180227_com.haixue.saas/tmp/ 2023-01-29 18:02:28 INFO [ReportFactory$.38.initReportPath] create /Users/apple/Documents/project_git/appcrawler/20230129180227_com.haixue.saas/tmp directory 2023-01-29 18:02:28 INFO [Crawler.137.start] prepare setup Appium 2023-01-29 18:02:28 INFO [Crawler.299.setupCrawler] afterAllMax=2 2023-01-29 18:02:30 INFO [Crawler.308.setupDriver] 2023-01-29 18:02:30 INFO [Crawler.344.setupDriver] use AppiumClient 2023-01-29 18:02:30 INFO [AppiumClient.45.] Capabilities {androidInstallTimeout: 180000, app: , appActivity: .SplashActivity, appPackage: com.haixue.saas, appium: http://127.0.0.1:4723/wd/hub, autoLaunch: true, autoWebview: false, deviceName: demo, dontStopAppOnReset: false, fullReset: false, launchTimeout: 120000, newCommandTimeout: 120, noReset: true, platformName: Android} 2023-01-29 18:02:38 INFO [SeleniumDriver.58.getDeviceInfo] screenWidth=1080 screenHeight=2265 2023-01-29 18:02:38 INFO [AppiumClient.76.] capture dir = /Users/apple/Documents/project_git/appcrawler/. 2023-01-29 18:02:38 INFO [Crawler.349.setupDriver] com.ceshiren.appcrawler.driver.AppiumClient@9b76b60 2023-01-29 18:02:38 DEBUG [DynamicEval$.113.load] first import 2023-01-29 18:02:42 INFO [Crawler.148.start] platformName= driver=com.ceshiren.appcrawler.driver.AppiumClient@9b76b60 2023-01-29 18:02:42 INFO [Crawler.149.start] ------------------------------------------------- appcrawler v2.7.4 全平台自动遍历测试工具 Q&A: https://ceshiren.com/c/opensource/appcrawler author: 思寒_seveniruby 天马 霍格沃兹测试开发学社 ------------------------------------------------- 2023-01-29 18:02:42 INFO [Crawler.179.waitAppLoaded] start wait app loaded timeout = 10000 2023-01-29 18:02:43 INFO [Crawler.185.$anonfun$waitAppLoaded$1] wait for app loaded 2023-01-29 18:02:43 INFO [Crawler.693.refreshPage] refresh page 2023-01-29 18:02:43 INFO [ReactWebDriver.88.getPageSourceWithRetry] start to get page source from appium 2023-01-29 18:02:52 INFO [LogicUtils$.91.asyncTask] use time 10.003 seconds name=waitAppLoaded result=error 2023-01-29 18:02:52 ERROR [LogicUtils$.98.asyncTask] 10 seconds timeout 2023-01-29 18:02:52 INFO [Crawler.199.waitAppLoaded] wait finish 2023-01-29 18:02:52 INFO [Crawler.152.start] driver=null 2023-01-29 18:02:52 INFO [Crawler.153.start] get screen info 2023-01-29 18:03:23 INFO [LogicUtils$.91.asyncTask] use time 40.006 seconds name=getPageSource result=error 2023-01-29 18:03:23 ERROR [LogicUtils$.98.asyncTask] 40 seconds timeout 2023-01-29 18:03:23 ERROR [ReactWebDriver.128.$anonfun$getPageSourceWithRetry$1] get page source error 2023-01-29 18:03:23 ERROR [ReactWebDriver.129.$anonfun$getPageSourceWithRetry$1] null 2023-01-29 18:03:23 WARN [ReactWebDriver.133.$anonfun$getPageSourceWithRetry$1] retry 1 times after 5s 2023-01-29 18:04:08 INFO [LogicUtils$.91.asyncTask] use time 40.0 seconds name=getPageSource result=error 2023-01-29 18:04:08 ERROR [LogicUtils$.98.asyncTask] 40 seconds timeout 2023-01-29 18:04:08 ERROR [ReactWebDriver.128.$anonfun$getPageSourceWithRetry$1] get page source error 2023-01-29 18:04:08 ERROR [ReactWebDriver.129.$anonfun$getPageSourceWithRetry$1] null 2023-01-29 18:04:08 WARN [ReactWebDriver.133.$anonfun$getPageSourceWithRetry$1] retry 2 times after 5s 2023-01-29 18:04:13 WARN [Crawler.702.refreshPage] page source get fail, go back 2023-01-29 18:05:14 INFO [SeleniumDriver.58.getDeviceInfo] screenWidth=1080 screenHeight=2265 2023-01-29 18:05:14 INFO [Crawler.693.refreshPage] refresh page 2023-01-29 18:05:14 INFO [ReactWebDriver.88.getPageSourceWithRetry] start to get page source from appium 2023-01-29 18:05:14 INFO [LogicUtils$.83.asyncTask] use time 0.767 seconds name=getPageSource result=success 2023-01-29 18:05:14 TRACE [ReactWebDriver.95.$anonfun$getPageSourceWithRetry$1] get raw page source success 2023-01-29 18:05:14 DEBUG [ReactWebDriver.98.$anonfun$getPageSourceWithRetry$1] 2023-01-29 18:05:14 INFO [ReactWebDriver.111.$anonfun$getPageSourceWithRetry$1] xml format 2023-01-29 18:05:15 TRACE [XPathUtil$.233.getNodeListByXPath] nodeList length 1 with (//*[@package!=''])[1] 2023-01-29 18:05:15 TRACE [XPathUtil$.336.getNodeListByXPath] filted node list length 1 2023-01-29 18:05:15 INFO [Crawler.711.parsePageContext] appName = com.haixue.saas 2023-01-29 18:05:15 TRACE [XPathUtil$.336.getNodeListByXPath] filted node list length 1 2023-01-29 18:05:15 INFO [Crawler.373.getUri] defineUrl= 2023-01-29 18:05:15 TRACE [XPathUtil$.233.getNodeListByXPath] nodeList length 1 with (//*[@package!=''])[1] 2023-01-29 18:05:15 TRACE [XPathUtil$.336.getNodeListByXPath] filted node list length 1 2023-01-29 18:05:15 INFO [Crawler.715.parsePageContext] url=com.haixue.saas.HomeActivity 2023-01-29 18:05:15 TRACE [Crawler.731.parsePageContext] urlStack=Stack(com.haixue.saas.HomeActivity) 2023-01-29 18:05:15 INFO [Crawler.742.parsePageContext] currentContentHash=3dc7f87a238d4c704aa0b2a3c8f9ab95 lastContentHash=3dc7f87a238d4c704aa0b2a3c8f9ab95 2023-01-29 18:05:15 INFO [DataRecord.25.isDiff] just only record return false 2023-01-29 18:05:15 INFO [Crawler.746.parsePageContext] ui not change 2023-01-29 18:05:15 INFO [Crawler.257.firstRefresh] first refresh 2023-01-29 18:05:15 TRACE [XPathUtil$.233.getNodeListByXPath] nodeList length 1 with /*/* 2023-01-29 18:05:15 TRACE [XPathUtil$.336.getNodeListByXPath] filted node list length 1 2023-01-29 18:05:15 INFO [Crawler.756.beforeElementAction] com.haixue.saas.HomeActivity.tag=Start.depth=2.id=Start.name=Start 2023-01-29 18:05:15 TRACE [Crawler.762.beforeElementAction] beforeElementAction 2023-01-29 18:05:15 INFO [Crawler.1043.doElementAction] current index = 0 2023-01-29 18:05:15 INFO [Crawler.1044.doElementAction] current xpath = //android.widget.FrameLayout[@class='android.widget.FrameLayout'] 2023-01-29 18:05:15 INFO [Crawler.1045.doElementAction] current action = _Start 2023-01-29 18:05:15 INFO [Crawler.1046.doElementAction] current element = com.haixue.saas.HomeActivity.tag=Start.depth=2.id=Start.name=Start 2023-01-29 18:05:15 INFO [Crawler.1047.doElementAction] current url = com.haixue.saas.HomeActivity 2023-01-29 18:05:15 INFO [Crawler.1048.doElementAction] current tag path = //android.widget.FrameLayout[@class='android.widget.FrameLayout'] 2023-01-29 18:05:15 INFO [Crawler.1049.doElementAction] current file name = com.haixue.saas.HomeActivity.tag=Start.depth=2.id=Start.name=Start 2023-01-29 18:05:15 INFO [URIElementStore.67.saveReqHash] save reqHash to 0 2023-01-29 18:05:15 INFO [URIElementStore.83.saveReqDom] save reqDom to 0 2023-01-29 18:05:15 INFO [Crawler.1059.doElementAction] just log 2023-01-29 18:05:15 INFO [Crawler.1060.doElementAction] { "url" : "com.haixue.saas.HomeActivity", "tag" : "Start", "className" : "android.widget.FrameLayout", "id" : "Start", "name" : "Start", "text" : "", "instance" : "", "depth" : "2", "latest" : "0", "valid" : "true", "selected" : "false", "xpath" : "//android.widget.FrameLayout[@class='android.widget.FrameLayout']", "ancestor" : "//android.widget.FrameLayout[@class='android.widget.FrameLayout']", "x" : 0, "y" : 0, "width" : 1080, "height" : 2265, "action" : "_Start" } 2023-01-29 18:05:15 INFO [Crawler.1157.doElementAction] afterAllRetry = 0 because of last action not equal to after 2023-01-29 18:05:15 INFO [Crawler.1161.doElementAction] sleep 1000 ms 2023-01-29 18:05:16 INFO [Crawler.781.afterElementAction] mark image exist 2023-01-29 18:05:16 INFO [Crawler.1215.saveScreen] start screenshot 2023-01-29 18:05:16 INFO [Crawler.1220.$anonfun$saveScreen$2] ui change screenshot again 2023-01-29 18:05:16 INFO [LogicUtils$.83.asyncTask] use time 0.566 seconds name=screenshot result=success 2023-01-29 18:05:16 INFO [Crawler.1226.saveScreen] screenshot success 2023-01-29 18:05:16 INFO [Crawler.693.refreshPage] refresh page 2023-01-29 18:05:16 INFO [ReactWebDriver.88.getPageSourceWithRetry] start to get page source from appium 2023-01-29 18:05:17 TRACE [ReactWebDriver.95.$anonfun$getPageSourceWithRetry$1] get raw page source success 2023-01-29 18:05:17 DEBUG [ReactWebDriver.98.$anonfun$getPageSourceWithRetry$1] 2023-01-29 18:05:17 INFO [ReactWebDriver.111.$anonfun$getPageSourceWithRetry$1] xml format 2023-01-29 18:05:17 TRACE [XPathUtil$.233.getNodeListByXPath] nodeList length 1 with (//*[@package!=''])[1] 2023-01-29 18:05:17 TRACE [XPathUtil$.336.getNodeListByXPath] filted node list length 1 2023-01-29 18:05:17 INFO [Crawler.711.parsePageContext] appName = com.haixue.saas 2023-01-29 18:05:17 TRACE [XPathUtil$.336.getNodeListByXPath] filted node list length 1 2023-01-29 18:05:17 INFO [Crawler.373.getUri] defineUrl= 2023-01-29 18:05:17 TRACE [XPathUtil$.233.getNodeListByXPath] nodeList length 1 with (//*[@package!=''])[1] 2023-01-29 18:05:17 TRACE [XPathUtil$.336.getNodeListByXPath] filted node list length 1 2023-01-29 18:05:17 INFO [Crawler.715.parsePageContext] url=com.haixue.saas.HomeActivity 2023-01-29 18:05:17 TRACE [Crawler.731.parsePageContext] urlStack=Stack(com.haixue.saas.HomeActivity) 2023-01-29 18:05:17 INFO [Crawler.742.parsePageContext] currentContentHash=3dc7f87a238d4c704aa0b2a3c8f9ab95 lastContentHash=3dc7f87a238d4c704aa0b2a3c8f9ab95 2023-01-29 18:05:17 INFO [Crawler.746.parsePageContext] ui not change 2023-01-29 18:05:17 INFO [Crawler.1201.saveDom] save to 20230129180227_com.haixue.saas/0_com.haixue.saas.HomeActivity.tag=Start.depth=2.id=Start.name=Start.clicked.xml 2023-01-29 18:05:17 INFO [URIElementStore.75.saveResHash] save resHash to 0 2023-01-29 18:05:17 INFO [URIElementStore.106.saveResImg] save resImg 20230129180227_com.haixue.saas/0_com.haixue.saas.HomeActivity.tag=Start.depth=2.id=Start.name=Start.clicked.png to 0 2023-01-29 18:05:17 INFO [URIElementStore.90.saveResDom] save resDom to 0 2023-01-29 18:05:17 INFO [Crawler.160.start] append current app name to appWhiteList 2023-01-29 18:05:17 INFO [Crawler.164.start] run steps 2023-01-29 18:05:17 INFO [Crawler.286.runSteps] run testcases 2023-01-29 18:05:17 INFO [AutomationSuite.16.beforeAll] beforeAll 2023-01-29 18:05:17 INFO [AutomationSuite.24.$anonfun$new$1] testcase start 2023-01-29 18:05:17 INFO [AutomationSuite.31.$anonfun$new$2] --- given: [] when: null then: [] xpath: "/*/*" action: "Thread.sleep(1000)" actions: [] times: -1 2023-01-29 18:05:17 TRACE [XPathUtil$.233.getNodeListByXPath] nodeList length 1 with /*/* 2023-01-29 18:05:17 TRACE [XPathUtil$.336.getNodeListByXPath] filted node list length 1 2023-01-29 18:05:17 DEBUG [AutomationSuite.37.$anonfun$new$2] HashMap(long-clickable -> false, ancestor -> //android.widget.FrameLayout[@class='android.widget.FrameLayout'], bounds -> [0,0][1080,2265], name() -> android.widget.FrameLayout, innerText -> , xpath -> //android.widget.FrameLayout[@class='android.widget.FrameLayout'], valid -> true, width -> 1080, value -> , x -> 0, package -> com.haixue.saas, name -> , clickable -> false, checked -> false, y -> 0, enabled -> true, label -> , checkable -> false, focusable -> false, height -> 2265, displayed -> true, focused -> false, selected -> false, text -> , class -> android.widget.FrameLayout, scrollable -> false, depth -> 2, index -> 0, password -> false) 2023-01-29 18:05:17 DEBUG [AutomationSuite.40.$anonfun$new$2] Steps.tag=FrameLayout.depth=2 2023-01-29 18:05:17 INFO [Crawler.756.beforeElementAction] Steps.tag=FrameLayout.depth=2 2023-01-29 18:05:17 TRACE [Crawler.762.beforeElementAction] beforeElementAction 2023-01-29 18:05:17 INFO [Crawler.1043.doElementAction] current index = 1 2023-01-29 18:05:17 INFO [Crawler.1044.doElementAction] current xpath = //android.widget.FrameLayout[@class='android.widget.FrameLayout'] 2023-01-29 18:05:17 INFO [Crawler.1045.doElementAction] current action = Thread.sleep(1000) 2023-01-29 18:05:17 INFO [Crawler.1046.doElementAction] current element = Steps.tag=FrameLayout.depth=2 2023-01-29 18:05:17 INFO [Crawler.1047.doElementAction] current url = Steps 2023-01-29 18:05:17 INFO [Crawler.1048.doElementAction] current tag path = //android.widget.FrameLayout[@class='android.widget.FrameLayout'] 2023-01-29 18:05:17 INFO [Crawler.1049.doElementAction] current file name = Steps.tag=FrameLayout.depth=2 2023-01-29 18:05:17 INFO [URIElementStore.67.saveReqHash] save reqHash to 1 2023-01-29 18:05:17 INFO [URIElementStore.83.saveReqDom] save reqDom to 1 2023-01-29 18:05:17 INFO [URIElementStore.97.saveReqImg] save reqImg 20230129180227_com.haixue.saas/1_Steps.tag=FrameLayout.depth=2.click.png to 1 2023-01-29 18:05:17 INFO [Crawler.1174.saveElementScreenshot] draw element in 20230129180227_com.haixue.saas/1_Steps.tag=FrameLayout.depth=2.click.png 2023-01-29 18:05:18 INFO [ScreenShot.45.clip] write png 20230129180227_com.haixue.saas/1_Steps.tag=FrameLayout.depth=2.click.png 2023-01-29 18:05:18 INFO [ScreenShot.57.clip] ImageIO.write newImageName 20230129180227_com.haixue.saas/1_Steps.tag=FrameLayout.depth=2.click.png 2023-01-29 18:05:18 INFO [Crawler.1108.doElementAction] need input Thread.sleep(1000) 2023-01-29 18:05:18 INFO [ReactWebDriver.36.findElement] find by uri element= Steps.tag=FrameLayout.depth=2 2023-01-29 18:05:18 INFO [AppiumClient.190.findElements] findElementsByXPath //android.widget.FrameLayout[@class='android.widget.FrameLayout'] 2023-01-29 18:05:48 INFO [LogicUtils$.91.asyncTask] use time 30.005 seconds name=findElementsByURI result=error 2023-01-29 18:05:48 ERROR [LogicUtils$.98.asyncTask] 30 seconds timeout 2023-01-29 18:05:48 ERROR [ReactWebDriver.59.findElement] find by xpath error 2023-01-29 18:05:48 ERROR [Crawler.1111.doElementAction] not found Steps.tag=FrameLayout.depth=2 2023-01-29 18:05:48 INFO [Crawler.1157.doElementAction] afterAllRetry = 0 because of last action not equal to after 2023-01-29 18:05:48 INFO [Crawler.1161.doElementAction] sleep 1000 ms 2023-01-29 18:05:49 INFO [Crawler.781.afterElementAction] mark image exist 2023-01-29 18:05:49 INFO [Crawler.1215.saveScreen] start screenshot 2023-01-29 18:05:49 INFO [Crawler.1220.$anonfun$saveScreen$2] ui change screenshot again 2023-01-29 18:06:49 INFO [LogicUtils$.91.asyncTask] use time 60.003 seconds name=screenshot result=error 2023-01-29 18:06:49 ERROR [LogicUtils$.98.asyncTask] 60 seconds timeout 2023-01-29 18:06:49 ERROR [Crawler.1229.saveScreen] screenshot error 2023-01-29 18:06:49 ERROR [Crawler.1230.saveScreen] null 2023-01-29 18:06:49 INFO [Crawler.693.refreshPage] refresh page 2023-01-29 18:06:49 INFO [ReactWebDriver.88.getPageSourceWithRetry] start to get page source from appium 2023-01-29 18:07:29 INFO [LogicUtils$.91.asyncTask] use time 40.001 seconds name=getPageSource result=error 2023-01-29 18:07:29 ERROR [LogicUtils$.98.asyncTask] 40 seconds timeout 2023-01-29 18:07:29 ERROR [ReactWebDriver.128.$anonfun$getPageSourceWithRetry$1] get page source error 2023-01-29 18:07:29 ERROR [ReactWebDriver.129.$anonfun$getPageSourceWithRetry$1] null 2023-01-29 18:07:29 WARN [ReactWebDriver.133.$anonfun$getPageSourceWithRetry$1] retry 1 times after 5s