fortuneo raise IncorrectPassword when there is new id

This commit is contained in:
Baptiste Delpey 2015-07-27 16:25:24 +02:00 committed by Romain Bignon
commit b2a1dc3dce

View file

@ -203,7 +203,7 @@ class AccountHistoryPage(Page):
class AccountsList(Page):
def on_loaded(self):
warn = self.document.xpath('//div[@id="message_renouvellement_mot_passe"]')
warn = self.document.xpath('//div[@id="message_renouvellement_mot_passe"] | //span[contains(text(), "Votre identifiant change")]')
if len(warn) > 0:
raise BrowserIncorrectPassword(warn[0].text)