Reset the counter to each pages
This commit is contained in:
parent
3cab148414
commit
3514f65cc6
1 changed files with 5 additions and 4 deletions
|
|
@ -110,8 +110,9 @@ class INGCategory(Filter):
|
||||||
|
|
||||||
|
|
||||||
class AccountsList(LoggedPage, HTMLPage):
|
class AccountsList(LoggedPage, HTMLPage):
|
||||||
|
def __init__(self, browser, response, *args, **kwargs):
|
||||||
i = 0
|
super(AccountsList, self).__init__(browser, response, *args, **kwargs)
|
||||||
|
self.i = 0
|
||||||
|
|
||||||
@method
|
@method
|
||||||
class get_list(ListElement):
|
class get_list(ListElement):
|
||||||
|
|
@ -147,8 +148,8 @@ class AccountsList(LoggedPage, HTMLPage):
|
||||||
def condition(self):
|
def condition(self):
|
||||||
if self.el.find('.//td[@class="date"]') is None:
|
if self.el.find('.//td[@class="date"]') is None:
|
||||||
return False
|
return False
|
||||||
if AccountsList.i < self.env['index']:
|
if self.page.i < self.env['index']:
|
||||||
AccountsList.i += 1
|
self.page.i += 1
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue