From 1051557543dd422760f5b7508a74e9014316b1a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9lande=20Adrien?= Date: Thu, 7 Mar 2019 11:52:20 +0100 Subject: [PATCH] [bp] iban duplicate For multiple checking accounts, the iban url was fetched on the same page. Now the detail page of the account is open so the correct url is got. Closes: 9914@zendesk --- modules/bp/pages/accountlist.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/bp/pages/accountlist.py b/modules/bp/pages/accountlist.py index 4cf07f8269..351bd2aea3 100644 --- a/modules/bp/pages/accountlist.py +++ b/modules/bp/pages/accountlist.py @@ -102,7 +102,11 @@ def obj_coming(self): return NotAvailable def obj_iban(self): - rib_link = Link('//a[abbr[contains(text(), "RIB")]]', default=NotAvailable)(self.el) + if not Field('url')(self): + return NotAvailable + + details_page = self.page.browser.open(Field('url')(self)).page + rib_link = Link('//a[abbr[contains(text(), "RIB")]]', default=NotAvailable)(details_page.doc) if rib_link: response = self.page.browser.open(rib_link) return response.page.get_iban() -- GitLab