minor fix

This commit is contained in:
2026-06-03 17:19:37 +08:00
parent d5e89768d5
commit b4afb01dfa
2 changed files with 2 additions and 1 deletions

View File

@@ -428,7 +428,8 @@ def main(driver: Chrome, logger = logging.getLogger('main')):
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(mails[0].find_element(By.CSS_SELECTOR, "button[data-action='minimize']"), wait=False) click(mails[0].find_element(By.CSS_SELECTOR, "button[data-action='close']"), wait=False)
click("div.modal-footer button[data-action='delete']", wait=False)
except Exception as e: except Exception as e:
logger.warning('Unable to close off email compose windows', exc_info=e) logger.warning('Unable to close off email compose windows', exc_info=e)
break break

Binary file not shown.