Commit 2773326b authored by Florian Duguet's avatar Florian Duguet Committed by Romain Bignon

[afer] handle new action needed message

parent 11cb5222
......@@ -55,6 +55,10 @@ class IndexPage(LoggedPage, HTMLPage):
if "prendre connaissance des nouvelles conditions" in msg:
raise ActionNeeded(msg)
msg = CleanText('//span[@id="txtErrorAccesBase"]')(self.doc)
if 'Merci de nous envoyer' in msg:
raise ActionNeeded(msg)
# website sometime crash
if self.doc.xpath(u'//div[@id="divError"]/span[contains(text(),"Une erreur est survenue")]'):
raise BrowserUnavailable()
......
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