chromedriver安装
2017-09-04 21:37
169 查看
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Cora_zmh/article/details/77842367
1、chromedriver与chrome见:http://blog.csdn.net/cz9025/article/details/70160273/
2、下载chromedriver并解压
3、两种方法:
(1)将解压后的exe文件放到chrome的安装目录下...\Google\Chrome\Application\ (我的Ch 4000 rome安装目录:C:\Program Files (x86)\Google\Chrome\Application) (2)直接放到Python的安装目录下 (我的Python安装目录:D:\software\Python34)
4、配置环境变量
(1)(2)都可以,对变量Path进行编辑,在变量值后面加入chrome或Python的安装目录(我的(1)没成功,试了(2)才成功)
5、用 Chrome 浏览器来测试
from selenium import webdriver browser = webdriver.Chrome() browser.get('http://www.baidu.com/')
运行以上代码,会自动打开浏览器,然后访问百度。
阅读更多相关文章推荐
- selenium安装与配置,以及chromedriver的使用
- linux 安装 chromedriver (Ubuntu linaro 安装 chromium-chromedriver)sudo apt-get install chromium-chromedr
- selenium之关于 chromedriver的安装和使用
- 解决npm install时报错无法安装chromedriver的问题
- 初次运行Selenium的ChromeDriver安装
- CentOS7 安装Selenium+Chrome+ChromeDriver
- win7下安装chromedriver和selenium测试
- web自动化_浏览器驱动chromedriver安装方法(适用RF框架/Selenium/Appium)
- Mac安装chromedriver和geckodriver
- selenium 安装与 chromedriver安装
- 解决@vue/cli 创建项目是安装chromedriver时失败的问题
- python+ubuntu+selenium安装chrome和chromedriver
- 在Windows下安装chromedriver
- CentOS7下Chrome以及chromedriver的安装配置
- 安装Chrome driver/ IE driver
- linux环境 安装chromedriver 和 phantomjs的方法
- windows XP中chromedriver安装及环境变量配置
- Chrome driver 安装及问题
- ubuntu下安装selenium以及chromedriver、geckodriver和phantomjs等驱动
- weex 执行 npm install 时,chromedriver 和 phantomjs 安装失败的解决方法