Commit fcd73bf5 authored by Christophe Francois's avatar Christophe Francois Committed by Vincent A

[caissedepargne] Handle some wrongpass cases

Sometimes, on creditfoncier, the wrongpass message is raised as a websiteUnavailable error.
parent ec6ccd05
......@@ -401,7 +401,10 @@ class MessagePage(GarbagePage):
class _LogoutPage(HTMLPage):
def on_load(self):
raise BrowserUnavailable(CleanText('//*[@class="messErreur"]')(self.doc))
message = CleanText('//*[@class="messErreur"]')(self.doc)
if 'votre identifiant client et votre code confidentiel' in message:
raise BrowserIncorrectPassword(message)
raise BrowserUnavailable(message)
class ErrorPage(_LogoutPage):
......
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