Commit 6df0d50f authored by Christophe Francois's avatar Christophe Francois Committed by Vincent A

[sogecartenet] Fix header index in iter_accounts & iter_history

There is now an empty line at the start of the xls documents, so we need
to shift the header row by 1.
parent ee76926f
......@@ -119,6 +119,8 @@ class XLSPage(Page):
class AccountsXlsPage(LoggedPage, XLSPage):
HEADER = 2 # the first row is empty, the second contains headers
@method
class iter_accounts(DictElement):
class item(ItemElement):
......@@ -285,9 +287,8 @@ class HistoryPage(LoggedPage, SeleniumPage):
self.browser.wait_xpath_visible('//p[contains(@class, "Notification-description")][contains(text(), "a bien été sélectionnée")]')
class HistoryXlsPage(LoggedPage, XLSPage):
HEADER = 4
HEADER = 5
@method
class iter_history(DictElement):
......
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