From d7b32af6a81afab63e7fe15438493d415674cc2f Mon Sep 17 00:00:00 2001 From: Maxime Gasselin Date: Mon, 18 Feb 2019 15:09:43 +0100 Subject: [PATCH] [creditmutuel] Handle terms and condtions page During the login we can pass through a terms and condtions page. We can skip it. To avoid crash it's only necessary to handle this page like a LoggedPage. Closes: 36177@sibi 9673@zendesk --- modules/creditmutuel/browser.py | 4 +++- modules/creditmutuel/pages.py | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/creditmutuel/browser.py b/modules/creditmutuel/browser.py index 63bb58f73e..1eaf06921e 100644 --- a/modules/creditmutuel/browser.py +++ b/modules/creditmutuel/browser.py @@ -48,7 +48,8 @@ LIAccountsPage, CardsActivityPage, CardsListPage, CardsOpePage, NewAccountsPage, InternalTransferPage, ExternalTransferPage, RevolvingLoanDetails, RevolvingLoansList, - ErrorPage, SubscriptionPage, NewCardsListPage, CardPage2 + ErrorPage, SubscriptionPage, NewCardsListPage, CardPage2, + ConditionsPage, ) @@ -136,6 +137,7 @@ class CreditMutuelBrowser(LoginBrowser, StatesMixin): error = URL(r'/(?P.*)validation/infos.cgi', ErrorPage) subscription = URL(r'/(?P.*)fr/banque/MMU2_LstDoc.aspx', SubscriptionPage) + terms_and_conditions = URL(r'/(?P.*)fr/banque/conditions-generales.html', ConditionsPage) currentSubBank = None is_new_website = None diff --git a/modules/creditmutuel/pages.py b/modules/creditmutuel/pages.py index 1cbd7f0db2..11e917c3be 100644 --- a/modules/creditmutuel/pages.py +++ b/modules/creditmutuel/pages.py @@ -1950,3 +1950,6 @@ def get_second_page_link(self): if other_cards: return Link(other_cards)(self) + +class ConditionsPage(LoggedPage, HTMLPage): + pass -- GitLab