fix count of forms
This commit is contained in:
parent
3bf7ef62c8
commit
f6b5996652
1 changed files with 1 additions and 1 deletions
|
|
@ -433,8 +433,8 @@ class HTMLPage(BasePage):
|
||||||
for el in self.doc.xpath(xpath):
|
for el in self.doc.xpath(xpath):
|
||||||
if name is not None and el.attrib.get('name', '') != name:
|
if name is not None and el.attrib.get('name', '') != name:
|
||||||
continue
|
continue
|
||||||
i += i
|
|
||||||
if nr is not None and i != nr:
|
if nr is not None and i != nr:
|
||||||
|
i += 1
|
||||||
continue
|
continue
|
||||||
|
|
||||||
return self.FORM_CLASS(self, el)
|
return self.FORM_CLASS(self, el)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue