全网查询

This commit is contained in:
manchuwork
2025-10-24 13:52:04 +08:00
parent c9ef243e9d
commit 08adafd2b6
2 changed files with 11 additions and 1 deletions

View File

@@ -7,5 +7,7 @@ enum class ZJMCCMCRMState {
GROUP_ALL_APPS_LIST,
GROUP_CREATE_SELECT_PAGE,
NORMAL_GROUP_CREATE_PAGE,
SEARCH_COMPANY_PAGE,
UNKNOWN
}

View File

@@ -18,7 +18,8 @@ class ZJMCCMCRMStateMachine(private val uiInspectorService: UIInspectorService)
private val stateTransitionMap = mapOf(
Pair(ZJMCCMCRMState.HOME_PAGE, ZJMCCMCRMState.GROUP_ALL_APPS_LIST) to ::handleHomePageToGroupAllAppsList,
Pair(ZJMCCMCRMState.GROUP_ALL_APPS_LIST, ZJMCCMCRMState.GROUP_CREATE_SELECT_PAGE) to ::handleAllAppsListToGroupCreateSelectPage,
Pair(ZJMCCMCRMState.GROUP_CREATE_SELECT_PAGE, ZJMCCMCRMState.NORMAL_GROUP_CREATE_PAGE) to ::handleGroupCreateSelectPageToNormalGroupCreatePage
Pair(ZJMCCMCRMState.GROUP_CREATE_SELECT_PAGE, ZJMCCMCRMState.NORMAL_GROUP_CREATE_PAGE) to ::handleGroupCreateSelectPageToNormalGroupCreatePage,
Pair(ZJMCCMCRMState.HOME_PAGE, ZJMCCMCRMState.SEARCH_COMPANY_PAGE) to ::handleHomePageToSearchCompanyPage
)
private fun executeWorkflow() {
@@ -144,4 +145,11 @@ class ZJMCCMCRMStateMachine(private val uiInspectorService: UIInspectorService)
AccessibilityTool.printViewTree(root, "after普通建档")
}
private fun handleHomePageToSearchCompanyPage(root: AccessibilityNodeInfo) {
AccessibilityTool.printViewTree(root)
AccessibilityTool.clickButtonByText(root, "全网查询")
println("全网查询 clicked")
Thread.sleep(1000)
}
}