Commit c0922ad8 authored by Maxime Gasselin's avatar Maxime Gasselin Committed by Vincent A

[bp] Handle logged in RedirectPage

We returned a false browserunavailable in some pro accounts. Here
we add a check on the redirect page.

Closes: 56215@sibi, 17824@zendesk, 17830@zendesk, 17844@zendesk, 17854@zendesk, 17858@zendesk, 17863@zendesk, 17868@zendesk, 17871@zendesk, 17905@zendesk, 17923@zendesk, 16614@zendesk, 17943@zendesk, 17957@zendesk, 17966@zendesk, 17971@zendesk
parent 06841d71
......@@ -263,7 +263,7 @@ class BPBrowser(LoginBrowser, StatesMixin):
self.location(self.login_url), self.password)
if self.redirect_page.is_here():
if self.redirect_page.is_here() and not
raise BrowserIncorrectPassword("L'identifiant utilisé est celui d'un compte de Particuliers.")
error =
......@@ -38,6 +38,9 @@ class RedirectPage(LoggedPage, MyHTMLPage):
def get_error(self):
return CleanText('//div[contains(@class, "bloc-erreur")]/h3')(self.doc)
def is_logged(self):
return 'Vous êtes bien authentifié' in CleanText('//p[@class="txt"]')(self.doc)
'Comptes titres': Account.TYPE_MARKET,
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