selenium - SyntaxError: The expression is not a legal expression -


i don't know how can use elements clicked on submit button. i've tried using xpath.,

web.find_elements_by_xpath('\\input value="submit" type="submit"').click() 

but error metioned in title.

i searched , couldn't find solution.
here's inspected element browser: submit button type value

what pass find_elements_by_xpath() doesn't looks xpath. find_elements_by_xpath() should return list doesn't have attribute click(). try use below instead:

web.find_element_by_xpath('//input[@value="submit" , @type="submit"]').click() 

Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

Ansible warning on jinja2 braces on when -