From 01b486031b2e4289554da2fd878fc947ab93c29a Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 14 Jun 2023 08:02:30 +0200 Subject: [PATCH] Dismiss LCL welcome screen --- ofx_processor/downloaders/lcl.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ofx_processor/downloaders/lcl.py b/ofx_processor/downloaders/lcl.py index 86c8cf0..0cbdd05 100644 --- a/ofx_processor/downloaders/lcl.py +++ b/ofx_processor/downloaders/lcl.py @@ -53,6 +53,12 @@ class LclDownloader: self._click(By.CLASS_NAME, "app-cta-button") click.secho("Logged in!", fg="green") + try: + self._click(By.CSS_SELECTOR, ".app-cta-button--primary") + click.secho("Dismissing welcome screen...", fg="blue") + except NoSuchElementException: + click.secho("No welcome screen found.", fg="blue") + try: self._click(By.CSS_SELECTOR, ".burger-menu-content") self._click(By.CSS_SELECTOR, ".return-legacy-button")