We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 599371f commit 44a1bacCopy full SHA for 44a1bac
1 file changed
webtest/forms.py
@@ -432,7 +432,10 @@ def _parse_fields(self):
432
fields = OrderedDict()
433
field_order = []
434
tags = ('input', 'select', 'textarea', 'button')
435
- for pos, node in enumerate(self.html.find_all(tags)):
+ for pos, node in enumerate(set( # convert to set to remove duplicates
436
+ self.html.find_all(tags)
437
+ + self.response.html.find_all(tags, attrs={'form': self.id})
438
+ )):
439
attrs = dict(node.attrs)
440
tag = node.name
441
name = None
0 commit comments