1.选择chromedriver
- selenium之 chromedriver与chrome版本映射表
http://blog.csdn.net/huilan_same/article/details/51896672 - chromedriver下载链接
http://chromedriver.storage.googleapis.com/index.html
二、chromedriver环境配置
chromedriver文件放在“/usr/local/bin”目录下
运行以下测试代码
from selenium import webdriver
driver = webdriver.Chrome()
base_url = 'https://www.baidu.com'
driver.get(base_url)