improvement for lots of multiple-selection forms (now by default the first one is selected - till now it was left unchecked which lead to blank get/post data for the whole form)

This commit is contained in:
Miroslav Stampar
2011-04-01 22:12:24 +00:00
parent c3b54cc222
commit cd7e4f5afc
2 changed files with 5 additions and 2 deletions

View File

@@ -457,6 +457,9 @@ def __findPageForms():
if forms:
for form in forms:
for control in form.controls:
if hasattr(control, 'items'):
control.items[0].selected = True
request = form.click()
url = urldecode(request.get_full_url(), kb.pageEncoding)
method = request.get_method()