擅长:python、mysql、java
<p>我使用了an attribute=value CSS选择器来定位submit按钮。在</p>
<pre><code>from selenium import webdriver
d = webdriver.FireFox()
d.get("https://www.webauto.de/")
d.find_element_by_xpath("//select[@id='carsearchmake']/option[text()='Ford']").click()
d.find_element_by_xpath("//select[@id='carsearchmod']/option[text()='Fiesta']").click()
d.find_element_by_css_selector("[value=Suchen]").click()
#d.quit()
</code></pre>