mirror of https://github.com/scrapy/scrapy.git
corrected syntax error in XPath
This commit is contained in:
parent
a5acc9373f
commit
dd064413a4
|
|
@ -170,8 +170,8 @@ def _get_clickable(clickdata, form):
|
|||
"""
|
||||
clickables = [
|
||||
el for el in form.xpath(
|
||||
'descendant::input[re.test(@type, "^(submit|image)$", "i")]'
|
||||
'|descendant::button[not(@type) or re.test(@type, "^submit$", "i")]',
|
||||
'descendant::input[re:test(@type, "^(submit|image)$", "i")]'
|
||||
'|descendant::button[not(@type) or re:test(@type, "^submit$", "i")]',
|
||||
namespaces={"re": "http://exslt.org/regular-expressions"})
|
||||
]
|
||||
if not clickables:
|
||||
|
|
|
|||
Loading…
Reference in New Issue