# coding:utf8
from selenium import webdriver
import time
driver = webdriver.Chrome(r"C:Program Files (x86)GoogleChromeApplicationchromedriver.exe")
driver.implicitly_wait(10)
driver.get('https://www.baidu.com/')
print(driver.title)
driver.find_element_by_id("kw").send_keys('松勤 ')
driver.find_element_by_id('1') # 两种方法都可以打印
# time.sleep(1)
print(driver.title)
driver.quit()