工况类型找不到时在列表循环匹配。
This commit is contained in:
4
main.py
4
main.py
@@ -170,9 +170,9 @@ class DeviceAutomation(object):
|
||||
# 实现连续获取断点列表直到两次相同
|
||||
previous_breakpoint_list = None
|
||||
current_breakpoint_list = None
|
||||
max_attempts = 10 # 最大尝试次数
|
||||
max_attempts = 5 # 最大尝试次数
|
||||
attempt_count = 0
|
||||
while True:
|
||||
while attempt_count < max_attempts:
|
||||
# 获取当前页面的断点列表
|
||||
|
||||
# 从当前页面获取断点列表名称
|
||||
|
||||
Reference in New Issue
Block a user