Changeset 1482:c77dea3e745a
- Timestamp:
- 08/26/08 17:07:44 (3 months ago)
- Files:
-
- test/base/twilltestcase.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
test/base/twilltestcase.py
r1451 r1482 8 8 import twill 9 9 import twill.commands as tc 10 from twill.other_packages import ClientForm10 from twill.other_packages._mechanize_dist import ClientForm 11 11 from elementtree import ElementTree 12 12 … … 411 411 """Populates and submits a form from the keyword arguments""" 412 412 #Check for onchange attribute, submit a change if required 413 for i, control in enumerate(tc.showforms()[form-1].controls): 413 for i, f in enumerate( tc.showforms() ): 414 if i == form - 1: 415 break 416 for i, control in enumerate( f.controls ): 414 417 try: 415 418 if 'refresh_on_change' in control.attrs.keys(): … … 457 460 value = [ value ] 458 461 459 for i, control in enumerate(tc.showforms()[form-1].controls): 462 for i, f in enumerate( tc.showforms() ): 463 if i == form - 1: 464 break 465 for i, control in enumerate( f.controls ): 460 466 if control.name == key: 461 467 control.clear()