From 7c648a3715b55f977c4cfe1a7b2618caa5ff3c42 Mon Sep 17 00:00:00 2001 From: Maxime Gasselin Date: Mon, 4 Feb 2019 17:46:25 +0100 Subject: [PATCH] [creditmutuel] fix life insurance invest table In the invest page, an other table may conflicts with the main table. Closes: 9476@zendesk --- modules/creditmutuel/pages.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/creditmutuel/pages.py b/modules/creditmutuel/pages.py index a49f7fe752..7435149665 100644 --- a/modules/creditmutuel/pages.py +++ b/modules/creditmutuel/pages.py @@ -1113,11 +1113,11 @@ def obj_commission(self): @method class iter_investment(TableElement): - item_xpath = '//table[has-class("liste")]/tbody/tr[count(td)>=7]' - head_xpath = '//table[has-class("liste")]/thead/tr/th' + item_xpath = '//table[has-class("liste") and not (@summary="Avances")]/tbody/tr[count(td)>=7]' + head_xpath = '//table[has-class("liste") and not (@summary="Avances")]/thead/tr/th' col_label = 'Support' - col_unitprice = re.compile(r"^Prix d'achat moyen") + col_unitprice = re.compile(r'Prix') col_vdate = re.compile(r'Date de cotation') col_unitvalue = 'Valeur de la part' col_quantity = 'Nombre de parts' -- GitLab