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:
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
Post a Comment