Commit dba4d1b7 authored by Maxime Pommier's avatar Maxime Pommier Committed by Vincent A

[caissedepargne] Retrieve card for old website

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
parent e7fdd72e
......@@ -563,7 +563,7 @@ class IndexPage(LoggedPage, HTMLPage):
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):"Do not try to go the CardsPage, there is not link on the main page")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment