support when there is an error

This commit is contained in:
Romain Bignon 2013-02-23 12:58:04 +01:00
commit 221f73d600

View file

@ -141,6 +141,11 @@ class ContractsPage(BasePage):
self.browser.submit()
class AccountsPage(BasePage):
def on_loaded(self):
warn = self.document.xpath('//div[@id="attTxt"]')
if len(warn) > 0:
raise BrowserUnavailable(warn[0].text)
def get_list(self):
l = []
ids = set()