From 9eef4a66a64aa5b367a5586f9dd04a259f9a9a0e Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Thu, 22 Sep 2022 20:23:54 +0100 Subject: [PATCH] Fix legacy --- ofx_processor/downloaders/lcl.py | 9 +++++---- pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ofx_processor/downloaders/lcl.py b/ofx_processor/downloaders/lcl.py index 386c080..c04af64 100644 --- a/ofx_processor/downloaders/lcl.py +++ b/ofx_processor/downloaders/lcl.py @@ -41,9 +41,9 @@ class LclDownloader: selenium.get("https://monespace.lcl.fr/connexion") try: self._click(By.ID, "popin_tc_privacy_button_2") - click.secho("Accepting privacy policy...") + click.secho("Accepting privacy policy...", fg="blue") except NoSuchElementException: - click.secho("Privacy policy already accepted") + click.secho("Privacy policy already accepted", fg="blue") login_input = selenium.find_element(By.ID, "identifier") login_input.send_keys(self.config.bank_identifier) @@ -54,10 +54,11 @@ class LclDownloader: click.secho("Logged in!", fg="green") try: + self._click(By.CSS_SELECTOR, "nav.menu-legacy button") self._click(By.CSS_SELECTOR, ".menu-link.to-legacy") - click.secho("Going back to legacy version...") + click.secho("Going back to legacy version...", fg="blue") except NoSuchElementException: - click.secho("Already on legacy version.") + click.secho("Already on legacy version.", fg="blue") click.secho("Navigating through archives...", fg="blue") self._click(By.ID, "linkSynthese") diff --git a/pyproject.toml b/pyproject.toml index 018a394..8fa9071 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "ofx-processor" -version = "4.1.1" +version = "4.1.2" description = "Personal ofx processor" readme = "README.md" authors = ["Gabriel Augendre "]