From 5e04a697f15531b5a3c9f11fc4b15847771f027a Mon Sep 17 00:00:00 2001 From: Vincent A Date: Mon, 8 Mar 2021 18:16:42 +0100 Subject: [PATCH] [caissedepargne] navigate to the proper document year before download We must be on the page where the document is listed to be able to download it, so let's select the right year. Else we download an unrelated HTML page. --- modules/caissedepargne/browser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/caissedepargne/browser.py b/modules/caissedepargne/browser.py index e6e045e31e..9195007843 100644 --- a/modules/caissedepargne/browser.py +++ b/modules/caissedepargne/browser.py @@ -1956,6 +1956,8 @@ def download_document(self, document): self.home_tache.go(tache='EPASYNT0') self.page.go_subscription() assert self.subscription.is_here() + self.page.change_year(document.date.year) + assert self.subscription.is_here() return self.page.download_document(document).content -- GitLab