From b4afb01dfa46a8e07540de7e725a565c07c7ca78 Mon Sep 17 00:00:00 2001 From: break27 Date: Wed, 3 Jun 2026 17:19:37 +0800 Subject: [PATCH] minor fix --- main.py | 3 ++- requirements.txt | Bin 992 -> 992 bytes 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 9fd705a..5370d31 100644 --- a/main.py +++ b/main.py @@ -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"): 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: logger.warning('Unable to close off email compose windows', exc_info=e) break diff --git a/requirements.txt b/requirements.txt index 2791de046756d42f13112ab3203356bfa5cd3319..dae8a244446d925aea14d92e2eb10abd400a25cd 100644 GIT binary patch delta 91 zcmaFB{(ybL4S#b6a|R=ZL