From ad0dee62628d4f58c32a97f5cb36856c73876be8 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Mon, 2 Feb 2015 20:27:03 +0100 Subject: [PATCH] fix detection of errors in page --- modules/ing/pages/accounts_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ing/pages/accounts_list.py b/modules/ing/pages/accounts_list.py index ecdacfa9..353748a4 100644 --- a/modules/ing/pages/accounts_list.py +++ b/modules/ing/pages/accounts_list.py @@ -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):