# coding:utf8
from selenium import webdriver
import time

driver = webdriver.Chrome(r"C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe")
driver.implicitly_wait(10)


driver.get('https://www.baidu.com/')
print(driver.title)

driver.find_element_by_id("kw").send_keys('松勤\n')

driver.find_element_by_id('1') # 两种方法都可以打印
# time.sleep(1)
print(driver.title)

driver.quit()