fix retrieve of accounts

This commit is contained in:
Romain Bignon 2012-10-16 14:38:55 +02:00
commit bd001f631e
2 changed files with 16 additions and 5 deletions

View file

@ -49,6 +49,13 @@ class AccountsPage(BasePage):
u'Mes comptes': Account.TYPE_CHECKING,
}
def is_error(self):
for script in self.document.xpath('//script'):
if script.text is not None and u"Le service est momentanément indisponible" in script.text:
return True
return False
def get_list(self):
account_type = Account.TYPE_UNKNOWN