Commit 3b542a47 authored by Maxime Gasselin's avatar Maxime Gasselin Committed by Romain Bignon

[bnporc-entreprise] Fix Market page when no account is present

The account table is present when no account is present, we need to add
condition to avoid research account in this case.

Closes: 27858@sibi
parent 19b80fda
Pipeline #1773 failed with stages
in 2 minutes and 26 seconds
......@@ -342,6 +342,9 @@ class MarketPage(LoggedPage, HTMLPage):
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'
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