Commit f5351136 authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Romain Bignon

[creditmutuel] Corrected <tr> selection for invests with only 7 columns

In iter_investments, the xpath selecting the correct <tr> 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
parent d6d18dc7
......@@ -874,7 +874,7 @@ class LIAccountsPage(LoggedPage, HTMLPage):
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'
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