fixing fortuneo listing account
This commit is contained in:
parent
92168fe69a
commit
51587adea8
2 changed files with 4 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ class Fortuneo(Browser):
|
|||
|
||||
if self.is_on_page(AccountsList) and self.page.need_reload():
|
||||
self.location('/ReloadContext?action=1&')
|
||||
elif self.is_on_page(AccountsList):
|
||||
elif self.is_on_page(AccountsList) and self.page.need_sms():
|
||||
raise BrowserIncorrectPassword('Authentification with sms is not supported')
|
||||
|
||||
def get_investments(self, account):
|
||||
|
|
|
|||
|
|
@ -237,6 +237,9 @@ class AccountsList(Page):
|
|||
form = self.document.xpath('//form[@name="InformationsPersonnellesForm"]')
|
||||
return len(form) > 0
|
||||
|
||||
def need_sms(self):
|
||||
return len(self.document.xpath('//div[@id="aidesecuforte"]'))
|
||||
|
||||
ACCOUNT_TYPES = {'mes-comptes/compte-courant': Account.TYPE_CHECKING,
|
||||
'mes-comptes/assurance-vie': Account.TYPE_LIFE_INSURANCE,
|
||||
'mes-comptes/livret': Account.TYPE_SAVINGS,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue