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('自动化测试')

原文地址:https://www.cnblogs.com/emma-zhu/p/7827859.html