From a94a171786a5f264b413d702f146acb0caf53eeb Mon Sep 17 00:00:00 2001 From: Christophe Francois Date: Tue, 22 Jun 2021 10:10:45 +0200 Subject: [PATCH] [boursedirect] Fix xpath for account balance The table doesn't have an ID anymore. The first cell of each row is now a `th`. There are two valuations, one for the current day and one for the day before, so we take the first one. Closes: 16697@sibi --- modules/boursedirect/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/boursedirect/pages.py b/modules/boursedirect/pages.py index 005f27c798..56c16a2a12 100644 --- a/modules/boursedirect/pages.py +++ b/modules/boursedirect/pages.py @@ -141,7 +141,7 @@ def obj_type(self): @method class fill_account(ItemElement): - obj_balance = CleanDecimal.French('//table[contains(@class,"compteInventaire")]//tr[td[b[text()="TOTAL"]]]/td[2]') + obj_balance = CleanDecimal.French('//th[b/text()="TOTAL"]/following-sibling::td[1]') class InvestPage(RawPage): -- GitLab