Python+Selenium与Chrome如何进行完美结合
from selenium import webdriver import os driver = webdriver.Chrome() driver.get("http://cn.bing.com") driver.find_element_by_xpath("//input[@id='sb_form_q']").send_keys("李晓鹏") driver.find_element_by_xpath("//input[@id='sb_form_go']").click() # driver.quit()