Commit c7190d1b authored by Damien Mat's avatar Damien Mat Committed by ntome

[bnporc/hellobank] Fixed BrowserPasswordExpired at login

Closes: 12995@zendesk
parent 3fa8d61d
......@@ -94,6 +94,7 @@ class BNPParibasBrowser(JsonBrowserMixin, LoginBrowser):
r'/fr/espace-pro/changer-son-mot-de-passe',
r'/fr/espace-client/100-connexions',
r'/fr/espace-prive/mot-de-passe-expire',
r'/fr/client/mdp-expire',
r'/fr/client/100-connexion',
r'/fr/systeme/page-indisponible', ConnectionThresholdPage)
accounts = URL(r'udc-wspl/rest/getlstcpt', AccountsPage)
......
......@@ -108,7 +108,10 @@ class ConnectionThresholdPage(HTMLPage):
return True
def on_load(self):
msg = CleanText('//div[@class="confirmation"]//span[span]')(self.doc)
msg = (
CleanText('//div[@class="confirmation"]//span[span]')(self.doc) or
CleanText('//p[contains(text(), "Vous avez atteint la date de fin de vie de votre code secret")]')(self.doc)
)
self.logger.warning('Password expired.')
if not self.browser.rotating_password:
......
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