diff --git a/Dockerfile b/Dockerfile index c72a35d..71dac4a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM debian:bookworm AS downloader WORKDIR /app RUN apt-get update && apt-get install -y wget -ARG GECKODRIVER_VERSION="v0.33.0" +ARG GECKODRIVER_VERSION="v0.35.0" ARG GECKODRIVER_FILENAME="geckodriver-$GECKODRIVER_VERSION-linux64.tar.gz" RUN wget -q https://github.com/mozilla/geckodriver/releases/download/$GECKODRIVER_VERSION/$GECKODRIVER_FILENAME \ && tar xvf $GECKODRIVER_FILENAME \ diff --git a/ofx_processor/downloaders/lcl.py b/ofx_processor/downloaders/lcl.py index 57dfdb4..bb9c248 100644 --- a/ofx_processor/downloaders/lcl.py +++ b/ofx_processor/downloaders/lcl.py @@ -34,6 +34,7 @@ class LclDownloader: ) self.selenium = webdriver.Firefox(options=options) self.selenium.implicitly_wait(30) + self.selenium.set_window_size(1280, 4000) def download(self) -> str: try: @@ -86,6 +87,7 @@ class LclDownloader: self._click(By.CLASS_NAME, "download-button") click.secho("Found it!", fg="green") + time.sleep(5) selenium.get("about:downloads") return self._get_last_download_file_name() diff --git a/pyproject.toml b/pyproject.toml index d06b528..69dad15 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "ofx-processor" -version = "4.5.0" +version = "4.5.1" description = "Personal ofx processor" readme = "README.md" authors = ["Gabriel Augendre "]