update: revert last commit

This commit is contained in:
2025-08-22 11:34:40 +08:00
parent 69fe47b19b
commit f04ec0eee7

View File

@@ -363,7 +363,7 @@ def main(driver: WebDriver):
while mails := driver.find_elements(By.CSS_SELECTOR, "div.io-ox-mail-compose-window"):
try:
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:
print(f"[警告] 关闭邮件时发生了错误:{e}")
break