#encoding = utf-8标签:webdriver,name,driver,selenium,获取,import From: https://www.cnblogs.com/dongtian/p/17496938.html
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
driver = webdriver.Chrome()
#打开百度首页
driver.get("https://www.baidu.com")
#根据name名称获取元素
driver.find_element(by=By.NAME,value="wd").send_keys('python')
time.sleep(6)
driver.quit()