Commit 63774442 authored by Romain Bignon's avatar Romain Bignon

fix recursive loop

parent 8b8108b1
......@@ -104,11 +104,10 @@ class GenericNewsPage(BasePage):
else:
raise
except BrokenPageError:
try :
self.element_title_selector = "h1"
return self.get_title()
except BrokenPageError:
if self.element_title_selector == 'h1':
raise NoTitleException("no title on %s" % (self.browser))
self.element_title_selector = "h1"
return self.get_title()
def get_element_body(self):
try :
......
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