chrom自动化

```

#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

  `

你可能感兴趣的:(chrom自动化)