Commit 7c6d645b authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Vincent A

[aviva] Handle new unavailable account message

"possible" instead of "disponible" in the xpath. We keep handling both
messages.
parent 12cc26ef
......@@ -96,7 +96,9 @@ class InvestmentPage(LoggedPage, HTMLPage):
return urljoin(self.browser.BASEURL, history_link[0]) if history_link else ''
def unavailable_details(self):
return CleanText('//p[contains(text(), "est pas disponible")]')(self.doc)
return CleanText(
'//p[contains(text(), "est pas disponible") or contains(text(), "est pas possible")]'
)(self.doc)
def is_valuation_available(self):
return (
......
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