Commit 5f1d35bb authored by Arnaud Fontaine's avatar Arnaud Fontaine

Allow to get the information_area message.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@45995 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 77684613
......@@ -378,7 +378,7 @@ class Browser(ExtendedTestBrowser):
def getTransitionMessage(self):
"""
Parses the current page and returns the value of the portal_status
Parse the current page and returns the value of the portal_status
message.
@return: The transition message
......@@ -391,6 +391,21 @@ class Browser(ExtendedTestBrowser):
except IndexError:
raise LookupError("Cannot find div with ID 'transition_message'")
def getInformationArea(self):
"""
Parse the current page and returns the value of the information_area
message.
@return: The information area message
@rtype: str
@raise LookupError: Not found
"""
try:
return self.etree.xpath('//div[@id="information_area"]')[0].text
except IndexError:
raise LookupError("Cannot find div with ID 'information_area'")
_listbox_table_xpath_str = '//table[contains(@class, "listbox-table")]'
_legacy_listbox_table_xpath_str = '//div[contains(@class, "listbox")]'\
......
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