Commit f0883f83 authored by Sylvie Ye's avatar Sylvie Ye Committed by Romain Bignon

[axabanque] handle new error message

parent 38f267e0
......@@ -118,7 +118,11 @@ class AccountSpaceLogin(JsonPage):
class ErrorPage(PartialHTMLPage):
def on_load(self):
error_msg = CleanText('//p[contains(text(), "temporairement indisponible")]')(self.doc)
if error_msg:
raise BrowserUnavailable(error_msg)
error_msg = (
CleanText('//p[contains(text(), "temporairement indisponible")]')(self.doc),
CleanText('//p[contains(text(), "maintenance est en cours")]')(self.doc),
for error in error_msg:
if error:
raise BrowserUnavailable(error_msg)
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