update: revert last commit
This commit is contained in:
@@ -363,7 +363,7 @@ def main(driver: WebDriver):
|
|||||||
while mails := driver.find_elements(By.CSS_SELECTOR, "div.io-ox-mail-compose-window"):
|
while mails := driver.find_elements(By.CSS_SELECTOR, "div.io-ox-mail-compose-window"):
|
||||||
try:
|
try:
|
||||||
click("button[data-action='close']", parent=mails[0])
|
click("button[data-action='close']", parent=mails[0])
|
||||||
click("div.modal-footer button[data-action='savedraft']")
|
click("div.modal-footer button[data-action='delete']")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"[警告] 关闭邮件时发生了错误:{e}")
|
print(f"[警告] 关闭邮件时发生了错误:{e}")
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user