Commit 7c648a37 authored by Maxime Gasselin's avatar Maxime Gasselin Committed by Romain Bignon

[creditmutuel] fix life insurance invest table

In the invest page, an other table may conflicts with the main table.

Closes: 9476@zendesk
parent 9ecf0441
...@@ -1113,11 +1113,11 @@ class LIAccountsPage(LoggedPage, HTMLPage): ...@@ -1113,11 +1113,11 @@ class LIAccountsPage(LoggedPage, HTMLPage):
@method @method
class iter_investment(TableElement): class iter_investment(TableElement):
item_xpath = '//table[has-class("liste")]/tbody/tr[count(td)>=7]' item_xpath = '//table[has-class("liste") and not (@summary="Avances")]/tbody/tr[count(td)>=7]'
head_xpath = '//table[has-class("liste")]/thead/tr/th' head_xpath = '//table[has-class("liste") and not (@summary="Avances")]/thead/tr/th'
col_label = 'Support' 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_vdate = re.compile(r'Date de cotation')
col_unitvalue = 'Valeur de la part' col_unitvalue = 'Valeur de la part'
col_quantity = 'Nombre de parts' col_quantity = 'Nombre de parts'
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