We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 599371f commit 625bca4Copy full SHA for 625bca4
webtest/forms.py
@@ -432,7 +432,14 @@ 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)):
+ elements = self.html.find_all(tags)
436
+ if self.response:
437
+ elements.extend(
438
+ elt for elt in self.response.html.find_all(
439
+ tags, attrs={'form': self.id})
440
+ if elt not in elements
441
+ )
442
+ for pos, node in enumerate(elements):
443
attrs = dict(node.attrs)
444
tag = node.name
445
name = None
0 commit comments