How to select input element with Python Selenium

Viewed 11586

I just cannot find working way to select this element, tried by CSS and xpath, but nothing works.

<input type="submit" value="Submit">

This does not work:

driver.find_element_by_xpath("//*[@id='theform']/div[2]/input").click()
driver.find_element_by_css_selector(".submit[value='Submit']").click()
1 Answers
Related