From 82a15a2be92b6544fe402cb6dfa1c563dfb9a83a Mon Sep 17 00:00:00 2001 From: Christophe Francois Date: Wed, 30 Sep 2020 11:04:08 +0200 Subject: [PATCH] [boursedirect] Handle new url after login After login, we are now on the "inventory" page, which was not handled. There is nothing to do on the page, the rest of the browsing looks unchanged. --- modules/boursedirect/browser.py | 2 ++ modules/boursedirect/pages.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/modules/boursedirect/browser.py b/modules/boursedirect/browser.py index 7279cf356b..982a26980e 100644 --- a/modules/boursedirect/browser.py +++ b/modules/boursedirect/browser.py @@ -30,6 +30,7 @@ LoginPage, PasswordRenewalPage, AccountsPage, HistoryPage, InvestPage, MarketOrdersPage, MarketOrderDetailsPage, LifeInsurancePage, IsinPage, PortfolioPage, JsRedirectPage, + HomePage, ) @@ -38,6 +39,7 @@ class BoursedirectBrowser(LoginBrowser): login = URL(r'/fr/login', LoginPage) password_renewal = URL(r'/fr/changer-mon-mot-de-passe', PasswordRenewalPage) + home = URL(r'/fr/page/inventaire', HomePage) accounts = URL( r'/priv/compte.php$', r'/priv/compte.php\?nc=(?P\d+)', diff --git a/modules/boursedirect/pages.py b/modules/boursedirect/pages.py index 06a56b7e8c..a88e206988 100644 --- a/modules/boursedirect/pages.py +++ b/modules/boursedirect/pages.py @@ -86,6 +86,10 @@ def logged(self): ) +class HomePage(BasePage): + pass + + class AccountsPage(BasePage): @method class iter_accounts(ListElement): -- GitLab