From 4b9dfa9736823faa82fbceabcbee7eb65b33b4bf Mon Sep 17 00:00:00 2001 From: Dorian Roly Date: Tue, 29 Jun 2021 11:48:41 +0200 Subject: [PATCH] [boursedirect] Improve balance Xpath in order to adapt it for ing child it's not breaking the boursedirect xpath closes: 20862@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 56c16a2a12..c597c72370 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('//th[b/text()="TOTAL"]/following-sibling::td[1]') + obj_balance = CleanDecimal.French('//b[text()="TOTAL"]/ancestor::*[position()=1]/following-sibling::td[1]') class InvestPage(RawPage): -- GitLab