From a7c3b591c93249409e8c1213424b04a7560638d2 Mon Sep 17 00:00:00 2001 From: Maxime Pommier Date: Mon, 26 Nov 2018 16:39:52 +0100 Subject: [PATCH] [cragr] Handle USD account - The iter account path for items in td wasn't take care of one specific class for usd account Closes: 8024@zendesk --- modules/cragr/web/pages.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/cragr/web/pages.py b/modules/cragr/web/pages.py index 37940f93a1..9080bebca1 100644 --- a/modules/cragr/web/pages.py +++ b/modules/cragr/web/pages.py @@ -202,6 +202,7 @@ class AccountsPage(MyLoggedPage, BasePage): TYPES = {u'CCHQ': Account.TYPE_CHECKING, # par u'CCOU': Account.TYPE_CHECKING, # pro u'AUTO ENTRP': Account.TYPE_CHECKING, # pro + u'DEVISE USD': Account.TYPE_CHECKING, u'EKO' : Account.TYPE_CHECKING, u'DAV NANTI': Account.TYPE_SAVINGS, u'LIV A': Account.TYPE_SAVINGS, @@ -246,7 +247,7 @@ class AccountsPage(MyLoggedPage, BasePage): @method class iter_accounts(TableElement): head_xpath = '//table[@class="ca-table"]//tr/th' - item_xpath = '//table[@class="ca-table"]//tr[contains(@class, "colcelligne")]' + item_xpath = '//table[@class="ca-table"]//tr[contains(@class, "colcelligne") or contains(@class, "autre-devise")]' col_id = 'N° de compte' col_label = 'Type de compte' -- GitLab