Commit 05b42add authored by Arnaud Fontaine's avatar Arnaud Fontaine

The testbrowser transition message should always be an utf-8 string (meaningful for Japanese).

parent 4558ac2f
......@@ -424,9 +424,15 @@ class Browser(ExtendedTestBrowser):
@raise LookupError: Not found
"""
try:
return self.etree.xpath('//div[@id="transition_message"]')[0].text
transition_message = self.etree.xpath(
'//div[@id="transition_message"]')[0].text
except IndexError:
raise LookupError("Cannot find div with ID 'transition_message'")
else:
if isinstance(transition_message, unicode):
transition_message = transition_message.encode('utf-8')
return transition_message
def getInformationArea(self):
"""
......
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