Commit afe2f075 authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by ntome

[axabanque] handle '/' in account id to avoid duplicates

Account IDs may have a format like '690/55555' and the currenct Regexp
only keeps '690', which leads to accounts with duplicate IDs.

Closes: 12022@zendesk
parent d002c93c
......@@ -56,7 +56,7 @@ class AccountsPage(LoggedPage, HTMLPage):
condition = lambda self: Field('balance')(self) is not NotAvailable
obj_id = Regexp(CleanText('.//span[has-class("small-title")]'), '(\d+)')
obj_id = Regexp(CleanText('.//span[has-class("small-title")]'), r'([\d/]+)')
obj_label = CleanText('.//h3[has-class("card-title")]')
obj_balance = CleanDecimal.French('.//p[has-class("amount-card")]')
obj_valuation_diff = CleanDecimal.French('.//p[@class="performance"]', default=NotAvailable)
......
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