删除废弃代码

This commit is contained in:
zw
2025-08-28 16:33:57 +08:00
parent a8a967f770
commit 76bb110857
2 changed files with 2 additions and 19 deletions

View File

@@ -972,18 +972,3 @@ class ScriptManager():
LogManager.error(f"检测不到收件箱", udid)
raise Exception("当前页面找不到收件箱,重启")
# 双击收件箱 定位到消息的位置
# if count == 4:
# r = el.bounds # 可能是命名属性,也可能是 tuple
# cx = int((r.x + r.width / 2) if hasattr(r, "x") else (r[0] + r[2] / 2))
# cy = int((r.y + r.height / 2) if hasattr(r, "y") else (r[1] + r[3] / 2))
# session.double_tap(cx, cy) # 可能抛异常:方法不存在
# LogManager.info(f"双击收件箱 定位到信息", udid)
# count = 0
def test(self, udid):
client = wda.USBClient(udid)
session = client.session()
session.appium_settings({"snapshotMaxDepth": 10})
print(client.source())