From f5351136603998ea1e08aee701fa852159cb47ae Mon Sep 17 00:00:00 2001 From: Quentin Defenouillere Date: Wed, 18 Jul 2018 16:45:52 +0200 Subject: [PATCH] [creditmutuel] Corrected selection for invests with only 7 columns In iter_investments, the xpath selecting the correct for TableElement was too restrictive (td count >7) whereas some invests may have only 7 columns. This is corrected with a count >= 7. Closes: 6171@zendesk --- modules/creditmutuel/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/creditmutuel/pages.py b/modules/creditmutuel/pages.py index cbb1f3cedb..772d1fc5e7 100644 --- a/modules/creditmutuel/pages.py +++ b/modules/creditmutuel/pages.py @@ -874,7 +874,7 @@ def obj_commission(self): @method class iter_investment(TableElement): - item_xpath = '//table[has-class("liste")]/tbody/tr[count(td)>7]' + item_xpath = '//table[has-class("liste")]/tbody/tr[count(td)>=7]' head_xpath = '//table[has-class("liste")]/thead/tr/th' col_label = 'Support' -- GitLab