删除废弃代码

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

6
.idea/workspace.xml generated
View File

@@ -4,9 +4,7 @@
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="eceeff5e-51c1-459c-a911-d21ec090a423" name="Changes" comment="ai 开始测试">
<change beforePath="$PROJECT_DIR$/Module/Main.py" beforeDir="false" afterPath="$PROJECT_DIR$/Module/Main.py" afterDir="false" />
</list>
<list default="true" id="eceeff5e-51c1-459c-a911-d21ec090a423" name="Changes" comment="ai 开始测试" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@@ -164,7 +162,7 @@
<workItem from="1756184656258" duration="24292000" />
<workItem from="1756271781908" duration="26153000" />
<workItem from="1756303414374" duration="1018000" />
<workItem from="1756361418986" duration="5886000" />
<workItem from="1756361418986" duration="7351000" />
</task>
<task id="LOCAL-00001" summary="ai 开始测试">
<option name="closed" value="true" />

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())