20250916-正式上线测试

This commit is contained in:
2025-09-16 15:37:36 +08:00
parent b91aa99048
commit e0dc14ea73
5 changed files with 36 additions and 29 deletions

View File

@@ -510,16 +510,20 @@ class ScriptManager():
goBack(1)
# 点击关注按钮
# followButton = AiUtils.getFollowButton(session)
# if followButton is not None:
# LogManager.method_info("找到关注按钮了", "关注打招呼", udid)
# followButton.click()
# else:
# LogManager.method_info("没找到关注按钮", "关注打招呼", udid)
# time.sleep(1)
# goBack(4)
# session.appium_settings({"snapshotMaxDepth": 15})
# continue
followButton = AiUtils.getFollowButton(session).get(timeout=5)
if followButton is not None:
# LogManager.method_info("找到关注按钮了", "关注打招呼", udid)
# followButton.click()
ControlUtils.micro_swipe_click(session, element=followButton, dist_min=1, dist_max=10, repeat=1)
else:
LogManager.method_info("没找到关注按钮", "关注打招呼", udid)
time.sleep(1)
goBack(4)
session.appium_settings({"snapshotMaxDepth": 15})
continue
session.appium_settings({"snapshotMaxDepth": 15})
goBack(3)