From b2a1dc3dce66d0ae8b06eab257ba58b46d0b70a4 Mon Sep 17 00:00:00 2001 From: Baptiste Delpey Date: Mon, 27 Jul 2015 16:25:24 +0200 Subject: [PATCH] fortuneo raise IncorrectPassword when there is new id --- modules/fortuneo/pages/accounts_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/fortuneo/pages/accounts_list.py b/modules/fortuneo/pages/accounts_list.py index 6cbd1d54..39f8a66b 100644 --- a/modules/fortuneo/pages/accounts_list.py +++ b/modules/fortuneo/pages/accounts_list.py @@ -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)