diff --git a/modules/bp/pages/accountlist.py b/modules/bp/pages/accountlist.py index 6b73bab373dde46564f205d9be62891f5d2d3bba..2976861cd05358e60e68daee2df29235711485d7 100644 --- a/modules/bp/pages/accountlist.py +++ b/modules/bp/pages/accountlist.py @@ -102,6 +102,14 @@ def obj_iban(self): if rib_link: response = self.page.browser.open(rib_link) return response.page.get_iban() + + elif Field('type')(self) == Account.TYPE_SAVINGS: + # The rib link is available on the history page (ex: Livret A) + his_page = self.page.browser.open(Field('url')(self)) + rib_link = Link('//a[abbr[contains(text(), "RIB")]]', default=NotAvailable)(his_page.page.doc) + if rib_link: + response = self.page.browser.open(rib_link) + return response.page.get_iban() return NotAvailable def obj_type(self):