Resolving Comments

This commit is contained in:
Viral Mehta 2018-03-19 18:19:39 +05:30
parent e25e2afe17
commit a5acc9373f
1 changed files with 2 additions and 5 deletions

View File

@ -170,11 +170,8 @@ def _get_clickable(clickdata, form):
"""
clickables = [
el for el in form.xpath(
'descendant::*[(self::input or self::button)'
' and re:test(@type, "^submit$", "i")]'
'|descendant::*[(self::input or self::button)'
' and re:test(@type, "^image$", "i")]'
'|descendant::button[not(@type)]',
'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: