Commit d3aa1400 authored by Florian Duguet's avatar Florian Duguet Committed by Romain Bignon

[societegenerale] raise BrowserUnavailable on load profile page if error

Closes: 599279@redmine
parent 43554ff6
......@@ -548,6 +548,11 @@ class AdvisorPage(BasePage):
class HTMLProfilePage(LoggedPage, HTMLPage):
def on_load(self):
msg = CleanText('//div[@id="connecteur_partenaire"]', default='')(self.doc)
if 'Erreur' in msg:
raise BrowserUnavailable(msg)
def get_profile(self):
profile = Person()
profile.name = Regexp(CleanText('//div[@id="dcr-conteneur"]//div[contains(text(), "PROFIL DE")]'), r'PROFIL DE (.*)')(self.doc)
......
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