minor fix
This commit is contained in:
3
main.py
3
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"):
|
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
|
||||||
|
|||||||
BIN
requirements.txt
BIN
requirements.txt
Binary file not shown.
Reference in New Issue
Block a user