[twill] ClientForm.AmbiguityError: more than one control matching type 'checkbox'

Norman Khine nkhine at itaapy.com
Wed Mar 29 00:02:27 PST 2006


Hello,
Not sure if I am doing something wrong, but I have a form and want to
display the form contents and get the following error:

Traceback (most recent call last):
  File "tests/twill_registration.py", line 45, in ?
    b.showforms()
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/twill-0.8.4-py2.4.egg/twill/browser.py",
line 224, in showforms
    for n, f in enumerate(self._browser.forms()):
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/twill-0.8.4-py2.4.egg/twill/other_packages/mechanize/_mechanize.py",
line 245, in forms
    return self._factory.forms()
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/twill-0.8.4-py2.4.egg/twill/utils.py",
line 369, in forms
    self._forms = parse_fn(response, self._encoding)
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/twill-0.8.4-py2.4.egg/twill/other_packages/mechanize/_html.py",
line 218, in parse_response
    ignore_errors=self.ignore_errors
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/twill-0.8.4-py2.4.egg/twill/other_packages/ClientForm.py",
line 871, in ParseResponse
    encoding,
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/twill-0.8.4-py2.4.egg/twill/other_packages/ClientForm.py",
line 951, in ParseFile
    index=ii*10)
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/twill-0.8.4-py2.4.egg/twill/other_packages/ClientForm.py",
line 2636, in new_control
    control.add_to_form(self)
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/twill-0.8.4-py2.4.egg/twill/other_packages/ClientForm.py",
line 1818, in add_to_form
    control = form.find_control(self.name, self.type)
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/twill-0.8.4-py2.4.egg/twill/other_packages/ClientForm.py",
line 2997, in find_control
    return self._find_control(name, type, kind, id, label, predicate, nr)
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/twill-0.8.4-py2.4.egg/twill/other_packages/ClientForm.py",
line 3077, in _find_control
    raise AmbiguityError("more than one control matching "+description)
ClientForm.AmbiguityError: more than one control matching type 'checkbox'

####################

Thanks

Norman

-- 
Norman Khine
SARL ITAAPY 9 rue Darwin, 75018 Paris - Tel +33(0)1 42 23 67 45
Mail: nkhine at itaapy.com - Fax: 01 53 28 27 88




More information about the twill mailing list