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

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -