diff --git a/.idea/iOSAI.iml b/.idea/iOSAI.iml index 894b6b0..6cb8b9a 100644 --- a/.idea/iOSAI.iml +++ b/.idea/iOSAI.iml @@ -4,7 +4,7 @@ - + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index c27b771..db8786c 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,5 +3,5 @@ - + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 1201d60..d2b75fa 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,13 +4,11 @@ - - - + + + - - - + @@ -337,8 +319,7 @@ @@ -353,7 +334,7 @@ - - + + \ No newline at end of file diff --git a/Utils/ControlUtils.py b/Utils/ControlUtils.py index cac7c58..975cb9e 100644 --- a/Utils/ControlUtils.py +++ b/Utils/ControlUtils.py @@ -178,6 +178,7 @@ class ControlUtils(object): center_y = rect.y + rect.height // 2 session.tap(left_x, center_y) + # 点击一个随机范围 @classmethod def tap_mini_cluster(cls, center_x: int, center_y: int, session, points=5, duration_ms=60): @@ -196,8 +197,13 @@ class ControlUtils(object): duration_s = random.randint(50, 100) / 1000.0 # 3. 下发多点触控 - session.tap_hold(cluster, duration=duration_s) - + session.tap_hold_coords(cluster, duration=duration_s) # 检测五分钟前和当前的状态是否相同 - # @classmethod + # @classmethod # def compareCurrentWithPreviousState(cls,xml): + + + + + +