Fix legacy
This commit is contained in:
parent
6bfb5ca29d
commit
9eef4a66a6
2 changed files with 6 additions and 5 deletions
|
@ -41,9 +41,9 @@ class LclDownloader:
|
||||||
selenium.get("https://monespace.lcl.fr/connexion")
|
selenium.get("https://monespace.lcl.fr/connexion")
|
||||||
try:
|
try:
|
||||||
self._click(By.ID, "popin_tc_privacy_button_2")
|
self._click(By.ID, "popin_tc_privacy_button_2")
|
||||||
click.secho("Accepting privacy policy...")
|
click.secho("Accepting privacy policy...", fg="blue")
|
||||||
except NoSuchElementException:
|
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 = selenium.find_element(By.ID, "identifier")
|
||||||
login_input.send_keys(self.config.bank_identifier)
|
login_input.send_keys(self.config.bank_identifier)
|
||||||
|
@ -54,10 +54,11 @@ class LclDownloader:
|
||||||
click.secho("Logged in!", fg="green")
|
click.secho("Logged in!", fg="green")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
self._click(By.CSS_SELECTOR, "nav.menu-legacy button")
|
||||||
self._click(By.CSS_SELECTOR, ".menu-link.to-legacy")
|
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:
|
except NoSuchElementException:
|
||||||
click.secho("Already on legacy version.")
|
click.secho("Already on legacy version.", fg="blue")
|
||||||
|
|
||||||
click.secho("Navigating through archives...", fg="blue")
|
click.secho("Navigating through archives...", fg="blue")
|
||||||
self._click(By.ID, "linkSynthese")
|
self._click(By.ID, "linkSynthese")
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "ofx-processor"
|
name = "ofx-processor"
|
||||||
version = "4.1.1"
|
version = "4.1.2"
|
||||||
description = "Personal ofx processor"
|
description = "Personal ofx processor"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
authors = ["Gabriel Augendre <gabriel@augendre.info>"]
|
authors = ["Gabriel Augendre <gabriel@augendre.info>"]
|
||||||
|
|
Loading…
Reference in a new issue