From 80fd2db3d4229296ab5ec2b35a8abe59dfe28dbd Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Tue, 21 Oct 2014 10:24:41 +0200 Subject: [PATCH] fix website change (yes, the typo is still here in class name) --- modules/carrefourbanque/pages.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/carrefourbanque/pages.py b/modules/carrefourbanque/pages.py index 5fd14ff1..08302e2b 100644 --- a/modules/carrefourbanque/pages.py +++ b/modules/carrefourbanque/pages.py @@ -50,12 +50,12 @@ class HomePage(LoggedPage, HTMLPage): klass = Account def condition(self): - return len(self.el.xpath('.//div[@class="catre_col_one"]/h2')) > 0 + return len(self.el.xpath('.//div[@class="catre_col_two"]/h2')) > 0 obj_id = CleanText('.//div[@class="carte_col_leftcol"]/p') & Regexp(pattern=r'(\d+)') obj_label = CleanText('.//div[@class="carte_col_leftcol"]/h2') - obj_balance = Format('-%s', CleanText('.//div[@class="catre_col_one"]/h2')) & CleanDecimal(replace_dots=True) - obj_currency = FrenchTransaction.Currency('.//div[@class="catre_col_one"]/h2') + obj_balance = Format('-%s', CleanText('.//div[@class="catre_col_two"]/h2')) & CleanDecimal(replace_dots=True) + obj_currency = FrenchTransaction.Currency('.//div[@class="catre_col_two"]/h2') obj__link = Link('.//a[contains(@href, "solde-dernieres-operations")]')