Merge remote-tracking branch 'origin/main'
# Conflicts: # .idea/workspace.xml # Utils/ControlUtils.py
This commit is contained in:
@@ -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):
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user