selenium3+python3

Posted emma0804

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了selenium3+python3相关的知识,希望对你有一定的参考价值。

1、python版本:python3.5.4

2、selenium 3

3、chrome版本52.0.02743.82

4、安装webdriver并将放置于python同一路径下

example:

from selenium import webdriver
print(‘the first‘)
driver = webdriver.Chrome()
driver.get(‘https://www.baidu.com‘)
driver.find_element_by_id(‘kw‘).send_keys(‘自动化测试‘)





以上是关于selenium3+python3的主要内容,如果未能解决你的问题,请参考以下文章

Selenium3.0 自动化测试

Selenium3自动化测试26显式等待

selenium3+Python+firefox53 兼容问题

1.6 selenium3+firefox环境搭建

Selenium3

selenium3+python3环境搭建