From dba4d1b7442f8f417ab5028df64051331b69e31a Mon Sep 17 00:00:00 2001 From: Maxime Pommier Date: Mon, 8 Jul 2019 16:35:43 +0200 Subject: [PATCH] =?UTF-8?q?[caissedepargne]=C2=A0Retrieve=20card=20for=20o?= =?UTF-8?q?ld=20website?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The new website and the old one are handle in the same code. A previous patch for the new website broke some code for the old one. Closes: 12254@zendesk --- modules/caissedepargne/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/caissedepargne/pages.py b/modules/caissedepargne/pages.py index c296f54f84..94e907bf9e 100644 --- a/modules/caissedepargne/pages.py +++ b/modules/caissedepargne/pages.py @@ -563,7 +563,7 @@ def go_list(self): def go_cards(self): # Do not try to go the card summary if we have no card, it breaks the session - if not CleanText('//form[@id="main"]//a/span[text()="Mes cartes bancaires"]')(self.doc): + if self.browser.new_website and not CleanText('//form[@id="main"]//a/span[text()="Mes cartes bancaires"]')(self.doc): self.logger.info("Do not try to go the CardsPage, there is not link on the main page") return -- GitLab