diff --git a/modules/hsbc/pages/account_pages.py b/modules/hsbc/pages/account_pages.py index ae932d3bd02d4c89752a060a814c1bb54f7fd5a6..260deb1114ed8ac92ccc7c5d47c4d1d852f26ce0 100644 --- a/modules/hsbc/pages/account_pages.py +++ b/modules/hsbc/pages/account_pages.py @@ -141,11 +141,13 @@ def filter(self, text): class AccountsPage(GenericLandingPage): + IS_HERE_CONDITIONS = '//p[contains(text(), "Tous mes comptes au ")]|//span[contains(text(), "Tous mes comptes au ")]' + def is_here(self): return ( CleanText('//h1[contains(text(), "Synthèse")]')(self.doc) or CleanText( - '//p[contains(text(), "Tous mes comptes au ")]|//span[contains(text(), "Tous mes comptes au ")]' + self.IS_HERE_CONDITIONS )(self.doc) )