update: revert last commit
This commit is contained in:
1 parent
69fe47b19b
commit
f04ec0eee7
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user