fix go on professional accounts list page

This commit is contained in:
Romain Bignon 2013-06-22 14:29:04 +02:00
commit 7f09092b37

View file

@ -20,7 +20,7 @@
import urllib
from weboob.tools.browser import BaseBrowser, BrowserIncorrectPassword
from weboob.tools.browser import BaseBrowser, BrowserIncorrectPassword, BrokenPageError
from .pages import LoginPage, IndexPage, AccountsPage, TransactionsPage, UnavailablePage, RedirectPage, HomePage
@ -77,10 +77,14 @@ class BanquePopulaire(BaseBrowser):
def get_accounts_list(self):
self.location(self.buildurl('/cyber/internet/StartTask.do', taskInfoOID='mesComptes', token=self.token))
if self.page.is_error():
self.location(self.buildurl('/cyber/internet/StartTask.do', taskInfoOID='mesComptesPRO', token=self.token))
if self.page.is_error():
self.location(self.buildurl('/cyber/internet/StartTask.do', taskInfoOID='maSyntheseGratuite', token=self.token))
if self.page.is_error():
self.location(self.buildurl('/cyber/internet/StartTask.do', taskInfoOID='accueilSynthese', token=self.token))
if self.page.is_error():
raise BrokenPageError('Unable to go on the accounts list page')
return self.page.get_list()