diff --git a/modules/caissedepargne/pages.py b/modules/caissedepargne/pages.py index c296f54f84414e9bf4a262dd484edb408010d359..94e907bf9e07e703d221c8ca05a224ba4fd33b54 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