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 2791de0..dae8a24 100644 Binary files a/requirements.txt and b/requirements.txt differ