diff --git a/modules/bnporc/enterprise/pages.py b/modules/bnporc/enterprise/pages.py index b01ac8cce94b13eb4e921014003fbb9c1ed373a5..a02aca40f0b688935d747f9054c1b1b9e66ded18 100644 --- a/modules/bnporc/enterprise/pages.py +++ b/modules/bnporc/enterprise/pages.py @@ -342,6 +342,9 @@ class MarketPage(LoggedPage, HTMLPage): @method class iter_market_accounts(TableElement): + def condition(self): + return not self.el.xpath('//table[@id="table-portefeuille"]//tr/td[contains(text(), "Aucun portefeuille à afficher")]') + item_xpath = '//table[@id="table-portefeuille"]/tbody[@class="main-content"]/tr' head_xpath = '//table[@id="table-portefeuille"]/thead/tr/th/label'