Commit 837064fd authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Vincent A

[cragr/regions] Handle two kinds of xpath for Loan balance

The @class of the loan balance is usually "montant3" but in some cases
it can also be "montant4".

Closes: 42591@sibi
parent 8c52c29d
......@@ -567,7 +567,7 @@ class LoansPage(LoggedPage, CragrPage):
# History table with 4 columns (no loan details)
self.env['next_payment_amount'] = NotAvailable
self.env['total_amount'] = NotAvailable
self.env['balance'] = CleanDecimal.French('./td[4]//*[@class="montant3"]', default=NotAvailable)(self)
self.env['balance'] = CleanDecimal.French('./td[4]//*[@class="montant3" or @class="montant4"]', default=NotAvailable)(self)
elif CleanText('//tr[contains(@class, "colcelligne")][count(td) = 6]')(self):
# History table with 5 columns (contains next_payment_amount & total_amount)
self.env['next_payment_amount'] = CleanDecimal.French('./td[3]//*[@class="montant3"]', default=NotAvailable)(self)
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