Commit 12d26a64 authored by Vincent Paredes's avatar Vincent Paredes Committed by Romain Bignon

the account information div's id change, so we look for the dom structure

parent 0cee8e2c
......@@ -49,12 +49,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/h2')) & CleanDecimal(replace_dots=True)
obj_currency = FrenchTransaction.Currency('.//div/h2')
obj__link = Link('.//a[contains(@href, "solde-dernieres-operations")]')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment