Commit 65ca4aaf authored by Maxime Pommier's avatar Maxime Pommier Committed by ntome

[axabanque] Add profile name

parent 980eda56
......@@ -502,8 +502,10 @@ class AXABanque(AXABrowser, StatesMixin):
@need_login
def get_profile(self):
self.profile_page.go()
return self.page.get_profile()
profile = self.page.get_profile()
self.bank_accounts.go()
profile.name = self.page.get_profile_name()
return profile
class AXAAssurance(AXABrowser):
BASEURL = 'https://espaceclient.axa.fr'
......
......@@ -247,6 +247,8 @@ class AccountsPage(LoggedPage, MyHTMLPage):
def get_form_action(self, form_name):
return self.get_form(id=form_name).url
def get_profile_name(self):
return Regexp(CleanText('//div[@id="bloc_identite"]/h5'), r'Bonjour (.*)')(self.doc)
class IbanPage(PDFPage):
def get_iban(self):
......
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