📜  selenium python代码示例的chrome驱动程序下载

📅  最后修改于: 2022-03-11 14:45:08.614000             🧑  作者: Mango

代码示例2
import timefrom selenium import webdriverdriver = webdriver.Chrome('/path/to/chromedriver')  # Optional argument, if not specified will search path.driver.get('http://www.google.com/');time.sleep(5) # Let the user actually see something!search_box = driver.find_element_by_name('q')search_box.send_keys('ChromeDriver')search_box.submit()time.sleep(5) # Let the user actually see something!driver.quit()