Commit 9c92cfa8 authored by Benjamin Tampigny's avatar Benjamin Tampigny Committed by Vincent A

[hsbc] let children page declare conditions for account page presence

parent 0111b561
......@@ -141,11 +141,13 @@ class Label(Filter):
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 ")]'
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