Commit 23ccf4c6 authored by Guillaume Risbourg's avatar Guillaume Risbourg Committed by ntome

[banquepopulaire] Modified owner_name account search for companies

Profile either has `name` or `company_name` attribute. The search on the
accounts was done only on `name`, not `company_name` which caused bugs.

Closes: 47716@sibi 13705@zendesk
parent 22cbec48
......@@ -276,7 +276,11 @@ class BanquePopulaire(LoginBrowser):
# thanks to stateful website
next_pages = []
accounts = []
owner_name = re.search(r' (.+)', self.get_profile().name).group(1).upper()
profile = self.get_profile()
if profile.name:
owner_name = re.search(r' (.+)', profile.name).group(1).upper()
else:
owner_name = re.search(r' (.+)', profile.company_name).group(1).upper()
self.go_on_accounts_list()
......
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