minor fix
This commit is contained in:
5
main.py
5
main.py
@@ -377,12 +377,11 @@ def main(driver: WebDriver):
|
||||
click(".modal-dialog .modal-footer button[data-action='ok']", condition)
|
||||
# 返回草稿箱
|
||||
click("li[data-id='default0/Brouillons']")
|
||||
ready(driver)
|
||||
|
||||
|
||||
for attempt in range(parameters.get('retry')):
|
||||
ready(driver)
|
||||
click("ul[aria-label='List view'] li[data-index='0']", condition)
|
||||
if get_subject() == subject: break
|
||||
time.sleep(parameters.get('interval'))
|
||||
if not get_subject() == subject: raise exception
|
||||
|
||||
click("ul.classic-toolbar button[aria-label='Edit copy']")
|
||||
|
||||
Reference in New Issue
Block a user