Commit 227cc829 authored by Sylvie Ye's avatar Sylvie Ye Committed by Romain Bignon

[societegenerale] update error message to retrieve documents

parent 47642b1f
......@@ -114,4 +114,6 @@ class BankStatementPage(LoggedPage, BasePage):
yield d
def has_error_msg(self):
return CleanText('//div[@class="MessageErreur"]')(self.doc) or CleanText('//span[@class="error_msg"]')(self.doc)
return any((CleanText('//div[@class="MessageErreur"]')(self.doc),
CleanText('//span[@class="error_msg"]')(self.doc),
self.doc.xpath('//div[contains(@class, "error_page")]'), ))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment