From 27e77a0b29cbbfb47a11fd82eace536f5c7b622e Mon Sep 17 00:00:00 2001 From: Sylvie Ye Date: Tue, 30 Apr 2019 15:53:38 +0200 Subject: [PATCH] [hsbc] handle PEA new urls --- modules/hsbc/browser.py | 12 +++++++----- modules/hsbc/pages/investments.py | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/modules/hsbc/browser.py b/modules/hsbc/browser.py index 66be84e87b..bc8821c9c3 100644 --- a/modules/hsbc/browser.py +++ b/modules/hsbc/browser.py @@ -99,21 +99,23 @@ class HSBC(LoginBrowser): r'https://www.hsbc.fr/1/[0-9]/authentication/sso-cwd\?customerFullName=.*', InvestmentFormPage ) - logon_investment_page = URL(r'https://investissements.clients.hsbc.fr/group-wd-gateway-war/gateway/LogonAuthentication', LogonInvestmentPage) + logon_investment_page = URL(r'https://investissements.clients.hsbc.fr/group-wd-gateway-war/gateway/LogonAuthentication', + r'https://investissements.clients.hsbc.fr/cwd/group-wd-gateway-war/gateway/LogonAuthentication', + LogonInvestmentPage) retrieve_accounts_view = URL( - r'https://investissements.clients.hsbc.fr/group-wd-gateway-war/gateway/wd/RetrieveProductView', + r'https://investissements.clients.hsbc.fr/cwd/group-wd-gateway-war/gateway/wd/RetrieveCustomerPortfolio', RetrieveAccountsPage ) retrieve_investments_page = URL( - r'https://investissements.clients.hsbc.fr/group-wd-gateway-war/gateway/wd/RetrieveProductView', + r'https://investissements.clients.hsbc.fr/cwd/group-wd-gateway-war/gateway/wd/RetrieveCustomerPortfolio', RetrieveInvestmentsPage ) retrieve_liquidity_page = URL( - r'https://investissements.clients.hsbc.fr/group-wd-gateway-war/gateway/wd/RetrieveProductView', + r'https://investissements.clients.hsbc.fr/cwd/group-wd-gateway-war/gateway/wd/RetrieveCustomerPortfolio', RetrieveLiquidityPage ) retrieve_useless_page = URL( - r'https://investissements.clients.hsbc.fr/group-wd-gateway-war/gateway/wd/RetrieveProductView', + r'https://investissements.clients.hsbc.fr/cwd/group-wd-gateway-war/gateway/wd/RetrieveCustomerPortfolio', RetrieveUselessPage ) diff --git a/modules/hsbc/pages/investments.py b/modules/hsbc/pages/investments.py index 63147b3d73..19dc4e0e36 100644 --- a/modules/hsbc/pages/investments.py +++ b/modules/hsbc/pages/investments.py @@ -45,7 +45,7 @@ def get_session_storage(self): class ProductViewHelper(): - URL = 'https://investissements.clients.hsbc.fr/group-wd-gateway-war/gateway/wd/RetrieveProductView' + URL = 'https://investissements.clients.hsbc.fr/cwd/group-wd-gateway-war/gateway/wd/RetrieveCustomerPortfolio' def __init__(self, browser): self.browser = browser -- GitLab