from selenium import webdriver
driver = webdriver.Chrome()
driver.get("http://www.baidu.com")
driver.find_element_by_id("kw").send_keys("杀手博客园")
driver.find_element_by_id("su").click()
driver.quit()
转载于:https://www.cnblogs.com/lxs1314/p/8342726.html
from selenium import webdriver
driver = webdriver.Chrome()
driver.get("http://www.baidu.com")
driver.find_element_by_id("kw").send_keys("杀手博客园")
driver.find_element_by_id("su").click()
driver.quit()
转载于:https://www.cnblogs.com/lxs1314/p/8342726.html