fix infinite loop if there is no pagination
This commit is contained in:
parent
3acbba30d9
commit
5d6b4ea7d9
1 changed files with 4 additions and 0 deletions
|
|
@ -122,6 +122,10 @@ class AccountsList(BasePage):
|
||||||
return jid
|
return jid
|
||||||
|
|
||||||
def islast(self):
|
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')
|
nomore = self.document.getroot().cssselect('.no-more-transactions')
|
||||||
if len(nomore) > 0:
|
if len(nomore) > 0:
|
||||||
return True
|
return True
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue