Commit 87460de4 authored by Sylvie Ye's avatar Sylvie Ye Committed by Romain Bignon

[societegenerale] add xpath error message in profile

some user can't access to profile page,
the page it's like this:
```
<body>
    Erreur
</body>
```
parent 227cc829
......@@ -628,7 +628,8 @@ class AdvisorPage(LoggedPage, XMLPage):
class HTMLProfilePage(LoggedPage, HTMLPage):
def on_load(self):
msg = CleanText('//div[@id="connecteur_partenaire"]', default='')(self.doc)
msg = CleanText('//div[@id="connecteur_partenaire"]', default='')(self.doc) or \
CleanText('//body', default='')(self.doc)
service_unavailable_msg = CleanText('//div[@class="message-error" and contains(text(), "indisponible")]')(self.doc)
if 'Erreur' in 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