Commit 1acb6816 authored by Andras Bartok's avatar Andras Bartok Committed by Romain Bignon

[bnp/enterprise] Handle 'No porftolio to display' message

parent 2773326b
......@@ -343,7 +343,8 @@ 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")]')
return not self.el.xpath('//table[@id="table-portefeuille"]//tr/td[contains(text(), "Aucun portefeuille à afficher") \
or contains(text(), "No portfolio to display")]')
item_xpath = '//table[@id="table-portefeuille"]/tbody[@class="main-content"]/tr'
head_xpath = '//table[@id="table-portefeuille"]/thead/tr/th/label'
......
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