From 1928f2a50066d28f1aabded5c2b2f4e086f5563b Mon Sep 17 00:00:00 2001 From: Florent Date: Wed, 3 Jul 2013 11:34:32 +0200 Subject: [PATCH] Fix paging on new website --- modules/boursorama/pages/account_history.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/boursorama/pages/account_history.py b/modules/boursorama/pages/account_history.py index 70537520..7a55c693 100644 --- a/modules/boursorama/pages/account_history.py +++ b/modules/boursorama/pages/account_history.py @@ -83,11 +83,11 @@ class AccountHistory(BasePage): return self.operations def get_next_url(self): - items = self.document.getroot().cssselect('ul.mainmenu li') + items = self.document.getroot().cssselect('ul.menu-lvl-0 li') current = False for li in reversed(items): - if li.attrib.get('class', '') == 'selected': + if li.attrib.get('class', '') == 'active': current = True elif current: a = li.find('a')