美文网首页
chrom自动化

chrom自动化

作者: 爱代码的派派星 | 来源:发表于2018-10-11 21:16 被阅读0次

```

#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自动化

      本文链接:https://www.haomeiwen.com/subject/lsyiaftx.html