鱼C论坛

 找回密码
 立即注册
查看: 1682|回复: 4

[已解决]刚刚试着学splinter,然后就出现这种问题,求帮助

[复制链接]
发表于 2017-9-2 11:47:41 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
>>>from splinter.browser import Browser
>>> b = Browser(driver_name="chrome")
>>> b.visit("http://www.qq.com")
Traceback (most recent call last):
  File "<pyshell#8>", line 1, in <module>
    b.visit("http://www.qq.com")
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\splinter\driver\webdriver\__init__.py", line 184, in visit
    self.driver.get(url)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 309, in get
    self.execute(Command.GET, {'url': url})
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 297, in execute
    self.error_handler.check_response(response)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 194, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Runtime.executionContextCreated has invalid 'context': {"auxData":{"frameId":"12036.1","isDefault":true},"id":1,"name":"","origin":"://"}
  (Session info: chrome=60.0.3112.113)
  (Driver info: chromedriver=2.9.248315,platform=Windows NT 6.1 SP1 x86_64)
最佳答案
2017-9-2 11:57:23
http://blog.csdn.net/leejeff/article/details/52935706
chrome与chromedriver 版本一致的问题
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2017-9-2 11:57:23 | 显示全部楼层    本楼为最佳答案   
http://blog.csdn.net/leejeff/article/details/52935706
chrome与chromedriver 版本一致的问题
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2017-9-2 11:58:46 | 显示全部楼层
SixPy 发表于 2017-9-2 11:57
chrome与chromedriver 版本一致的问题

谢谢,我试一下
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2017-9-2 12:18:31 | 显示全部楼层
SixPy 发表于 2017-9-2 11:57
chrome与chromedriver 版本一致的问题

哈哈,多谢多谢,解决了问题
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2018-2-6 12:10:04 | 显示全部楼层
楼主我已经安装了splinter为什么还是导入不了包
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-5-21 18:47

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表