Commit 2e137ecd authored by Maxime Gasselin's avatar Maxime Gasselin Committed by Romain Bignon

[creditmutuel] Add next card page

parent 44f27a4b
......@@ -1838,9 +1838,14 @@ class SubscriptionPage(LoggedPage, HTMLPage):
class NewCardsListPage(LoggedPage, HTMLPage):
@pagination
@method
class iter_accounts(ListElement):
item_xpath = '//li[@class="item"]'
def next_page(self):
other_cards = self.el.xpath('//span/a[contains(text(), "Autres cartes")]')
if other_cards:
return Link(other_cards)(self)
class item(ItemElement):
klass = Account
......
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