Add name attribut to Form object
This commit is contained in:
parent
e986d96daa
commit
839834edf2
1 changed files with 1 additions and 0 deletions
|
|
@ -376,6 +376,7 @@ class Form(OrderedDict):
|
|||
self.el = el
|
||||
self.method = el.attrib.get('method', 'GET')
|
||||
self.url = el.attrib.get('action', page.url)
|
||||
self.name = el.attrib.get('name', '')
|
||||
|
||||
for inp in el.xpath('.//input | .//select | .//textarea'):
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue