Commit 49605a24 authored by Sylvie Ye's avatar Sylvie Ye Committed by Romain Bignon

[societegenerale] handle website unavailable message

parent f8888467
......@@ -686,5 +686,10 @@ class HTMLProfilePage(LoggedPage, HTMLPage):
class UnavailableServicePage(LoggedPage, HTMLPage):
def on_load(self):
if self.doc.xpath('//div[contains(@class, "erreur_404_content")]'):
conditions = (
self.doc.xpath('//div[contains(@class, "erreur_404_content")]'),
'Site momentanément indisponible' in CleanText('//h2[contains(@class, "error-page")]')(self.doc),
if any(conditions):
raise BrowserUnavailable()
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