```
#encoding=utf-8
from selenium import webdriver
import time
do=webdriver.Chrome() #打开谷歌
do.get('https://www.baidu.com/')
time.sleep(2)
do.find_element_by_id('kw').send_keys(u'王兴')
do.find_element_by_id('su').click()
```
`
notice:chromdriver下载完成后解压至python27
`
网友评论