The new woob repository is here: This gitlab will be removed soon.

Commit 42f81da9 authored by Simon Rochwerg's avatar Simon Rochwerg Committed by Romain Bignon

[cic] handles new page indicating that website is unavailable

Closes: 9101@sibi
parent 57e06a10
......@@ -42,7 +42,8 @@
IbanPage, NewHomePage, AdvisorPage, RedirectPage, \
LIAccountsPage, CardsActivityPage, CardsListPage, \
CardsOpePage, NewAccountsPage, InternalTransferPage, \
ExternalTransferPage, RevolvingLoanDetails, RevolvingLoansList
ExternalTransferPage, RevolvingLoanDetails, RevolvingLoansList, \
__all__ = ['CreditMutuelBrowser']
......@@ -121,6 +122,7 @@ class CreditMutuelBrowser(LoginBrowser, StatesMixin):
internal_transfer = URL('/(?P<subbank>.*)fr/banque/virements/vplw_vi.html', InternalTransferPage)
external_transfer = URL('/(?P<subbank>.*)fr/banque/virements/vplw_vee.html', ExternalTransferPage)
recipients_list = URL('/(?P<subbank>.*)fr/banque/virements/vplw_bl.html', RecipientsListPage)
error = URL('/validation/infos.cgi', ErrorPage)
currentSubBank = None
is_new_website = None
......@@ -1449,7 +1449,11 @@ class item_account(ItemElement):
def condition(self):
return CleanText('.//a', default=None)(self)
class ErrorPage(HTMLPage):
def on_load(self):
error = CleanText('//td[@class="ALERTE"]')(self.doc)
if error:
raise BrowserUnavailable(error)
class RevolvingLoanDetails(LoggedPage, HTMLPage):
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