fix detection of errors in page
This commit is contained in:
parent
95aa29b715
commit
ad0dee6262
1 changed files with 1 additions and 1 deletions
|
|
@ -118,7 +118,7 @@ class AccountsList(LoggedPage, HTMLPage):
|
|||
i = 0
|
||||
|
||||
def has_error(self):
|
||||
return self.doc.xpath('//div[has-class("alert-warning")]') > 0
|
||||
return len(self.doc.xpath('//div[has-class("alert-warning")]')) > 0
|
||||
|
||||
@method
|
||||
class get_list(ListElement):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue