Commit 042f8589 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Add missing imports for the code copied (temporarly) from zope.testbrowser


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@44852 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8a99af00
......@@ -273,6 +273,9 @@ class Browser(ExtendedTestBrowser):
return dict(link.attrs).get('id') == id
args = {'predicate': predicate}
else:
from zope.testbrowser.browser import RegexType
import re
if isinstance(text, RegexType):
text_regex = text
elif text is not None:
......@@ -689,8 +692,6 @@ class ContextMainForm(MainForm):
@type kwargs: dict
@return: The control found at the given line and column numbers
@rtype: L{zope.testbrowser.interfaces.IControl}
@todo: What if there is more than one field in a cell?
"""
xpath_str = '%s//tr[%d]//%s[%d]/input[%d]' % \
(self.browser._listbox_table_xpath_str,
......
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