fix detection of errors in page

This commit is contained in:
Romain Bignon 2015-02-02 20:27:03 +01:00
commit ad0dee6262

View file

@ -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):