be more robust on logout
This commit is contained in:
parent
ec78d5cd69
commit
e0190a93eb
1 changed files with 2 additions and 1 deletions
|
|
@ -35,11 +35,12 @@ class CaisseEpargne(BaseBrowser):
|
||||||
PAGES = {'https://[^/]+.caisse-epargne.fr/particuliers/ind_pauthpopup.aspx.*': LoginPage,
|
PAGES = {'https://[^/]+.caisse-epargne.fr/particuliers/ind_pauthpopup.aspx.*': LoginPage,
|
||||||
'https://[^/]+.caisse-epargne.fr/Portail.aspx': IndexPage,
|
'https://[^/]+.caisse-epargne.fr/Portail.aspx': IndexPage,
|
||||||
'https://[^/]+.caisse-epargne.fr/login.aspx': ErrorPage,
|
'https://[^/]+.caisse-epargne.fr/login.aspx': ErrorPage,
|
||||||
|
'https://[^/]+.caisse-epargne.fr/Pages/logout.aspx.*': ErrorPage,
|
||||||
'https://[^/]+.caisse-epargne.fr/page_hs_dei_.*.aspx': UnavailablePage,
|
'https://[^/]+.caisse-epargne.fr/page_hs_dei_.*.aspx': UnavailablePage,
|
||||||
}
|
}
|
||||||
|
|
||||||
def is_logged(self):
|
def is_logged(self):
|
||||||
return self.page is not None and not self.is_on_page(LoginPage)
|
return self.page is not None and not self.is_on_page((LoginPage,ErrorPage))
|
||||||
|
|
||||||
def home(self):
|
def home(self):
|
||||||
if self.is_logged():
|
if self.is_logged():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue