This commit is contained in:
Miroslav Stampar 2015-09-03 10:11:36 +02:00
parent fb5a75c9ad
commit 7511023bc2

View File

@ -3556,7 +3556,7 @@ def findPageForms(content, url, raise_=False, addToTargets=False):
for form in forms: for form in forms:
try: try:
for control in form.controls: for control in form.controls:
if hasattr(control, "items") and not control.disabled: if hasattr(control, "items") and not any((control.disabled, control.readonly)):
# if control has selectable items select first non-disabled # if control has selectable items select first non-disabled
for item in control.items: for item in control.items:
if not item.disabled: if not item.disabled: