python(selenium)使用chrome驱动问题小记
2018-03-22 14:56
691 查看
1、通过网上的对应表找到对应的chromedriver版本
2、将chromedriver版本放到python安装路径下,注意chrome.exe不能放进去,否则报以下的错误
from unknown error: page could not be found: chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html
(Session info: chrome=65.0.3325.181)
(Driver info: chromedriver=2.25.426923 (0390b88869384d6eb0d5d09729679f934aab9eed),platform=Windows NT 6.1.7601 SP1 x86)
3、chromedriver放一个到chrome的安装目录下 :
4、运行如下代码 即可通过selenium打开
from selenium import webdriver
driver=webdriver.Chrome()
driver.maximize_window()
driver.get("https://www.baidu.com")
driver.quit()
2、将chromedriver版本放到python安装路径下,注意chrome.exe不能放进去,否则报以下的错误
from unknown error: page could not be found: chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html
(Session info: chrome=65.0.3325.181)
(Driver info: chromedriver=2.25.426923 (0390b88869384d6eb0d5d09729679f934aab9eed),platform=Windows NT 6.1.7601 SP1 x86)
3、chromedriver放一个到chrome的安装目录下 :
4、运行如下代码 即可通过selenium打开
from selenium import webdriver
driver=webdriver.Chrome()
driver.maximize_window()
driver.get("https://www.baidu.com")
driver.quit()
相关文章推荐
- python爬虫,selenium使用,Firefox-chrome-IE问题解决方法,selenium的基本操作
- 【Python3.6爬虫学习记录】(七)使用Selenium+ChromeDriver爬取知乎某问题的回答
- selenium的Python使用(一)浏览器驱动的安装及使用
- python splinter操作chrome时遇到的驱动问题
- 使用python_selenium爬取动态网页时要注意的问题
- 用python做自动化测试--web 自动化测试(1)-Selenium 3.x使用系列问题集
- 使用Python+Selenium过程中中常见的问题汇总
- python 结合 selenium 使用iedriver报错问题处理
- python selenium chrome使用代理自动登录,并可以远程调用
- python+selenium在Pycharm中使用alert报错问题解决
- [Python 爬虫之路4] 使用selenium爬取知乎任意一个问题下,所有回答中的图片
- python chrome selenium使用
- Selenium-解决使用Webdrive打开Firefox不含有插件的问题(python)
- 使用python通过selenium模拟打开chrome窗口报错 出现 "您使用的是不受支持的命令行标记:--ignore-certificate-errors
- python+selenium+firefox/chrome版本兼容问题记录
- 使用python+Selenium2+chrome模拟用户登录
- selenium之python自动化测试系列:使用chrome或firefox的已存在的cookie访问网站
- (selenium 小知识点)解决使用Webdrive打开Firefox不含有插件的问题(python)
- python下初步使用selenium/phantomJS问题总结