fix infinite loop if there is no pagination

This commit is contained in:
Romain Bignon 2013-02-25 14:37:27 +01:00
commit 5d6b4ea7d9

View file

@ -122,6 +122,10 @@ class AccountsList(BasePage):
return jid
def islast(self):
havemore = self.document.getroot().cssselect('.show-more-transactions')
if len(havemore) == 0:
return True
nomore = self.document.getroot().cssselect('.no-more-transactions')
if len(nomore) > 0:
return True