修改,解决视频无法播放问题
This commit is contained in:
@@ -70,6 +70,7 @@ class ControlUtils(object):
|
||||
"@name='Back' or @label='Back' or " # 英文
|
||||
"@name='返回' or @label='返回' or " # 中文
|
||||
"@label='返回上一屏幕' or " # 中文另一种
|
||||
"@name='returnButton' or"
|
||||
"@name='nav_bar_start_back' or " # 内部常见 name
|
||||
"(@name='TTKProfileNavBarBaseItemComponent' and @label='IconChevronLeftOffsetLTR')" # 你给的特例
|
||||
")]"
|
||||
|
||||
@@ -617,7 +617,18 @@ class ScriptManager():
|
||||
ControlUtils.swipe_up(udid)
|
||||
|
||||
# 右滑返回
|
||||
client.swipe_right()
|
||||
# client.swipe_right()
|
||||
session.appium_settings({"snapshotMaxDepth": 12})
|
||||
source = session.source()
|
||||
print(f"fff“:{source}")
|
||||
|
||||
back_btn = ControlUtils.clickBack(session)
|
||||
|
||||
if not back_btn:
|
||||
print("返回失败,出现问题")
|
||||
raise Exception("返回失败,出现问题")
|
||||
|
||||
|
||||
if event.is_set():
|
||||
LogManager.method_info("viewAnchorVideo 检测到停止,提前退出", "关注打招呼", udid)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user