博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Chrome浏览器之 webdriver(Chrome version must be >= 63.0.3239.0)
阅读量:4571 次
发布时间:2019-06-08

本文共 1600 字,大约阅读时间需要 5 分钟。

# coding = utf-8from selenium import webdriverdriver = webdriver.Chrome()driver.get('http://www.baidu.com')print (driver.title)  # 把页面title 打印出来driver.quit()

  运行上续代码报错:

Traceback (most recent call last):

File "D:/aasoftcfl/python/cflproject/projectcfl22chrome.py", line 5, in <module>
driver = webdriver.Chrome()
File "D:\aasoftcfl\python\lib\site-packages\selenium-3.11.0-py3.6.egg\selenium\webdriver\chrome\webdriver.py", line 75, in __init__
desired_capabilities=desired_capabilities)
File "D:\aasoftcfl\python\lib\site-packages\selenium-3.11.0-py3.6.egg\selenium\webdriver\remote\webdriver.py", line 154, in __init__
self.start_session(desired_capabilities, browser_profile)
File "D:\aasoftcfl\python\lib\site-packages\selenium-3.11.0-py3.6.egg\selenium\webdriver\remote\webdriver.py", line 243, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "D:\aasoftcfl\python\lib\site-packages\selenium-3.11.0-py3.6.egg\selenium\webdriver\remote\webdriver.py", line 312, in execute
self.error_handler.check_response(response)
File "D:\aasoftcfl\python\lib\site-packages\selenium-3.11.0-py3.6.egg\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not created exception: Chrome version must be >= 63.0.3239.0
(Driver info: chromedriver=2.36.540470 (e522d04694c7ebea4ba8821272dbef4f9b818c91),platform=Windows NT 6.1.7601 SP1 x86_64)

查看浏览器版本58.****,所以升级浏览器解决了问题;

解决方法:升级Chrome浏览器

 

转载于:https://www.cnblogs.com/shishibuwan/p/9072113.html

你可能感兴趣的文章
c# 前台js 调用后台代码
查看>>
2017-02-20 可编辑div中如何在光标位置添加内容
查看>>
$.ajax()方法详解
查看>>
jquery操作select(增加,删除,清空)
查看>>
Sublimetext3安装Emmet插件步骤
查看>>
MySQL配置参数
查看>>
全面理解Java内存模型
查看>>
存储过程
查看>>
生成器
查看>>
将一个数的每一位都取出来的方法!
查看>>
2) 十分钟学会android--建立第一个APP,执行Android程序
查看>>
面试题8:二叉树下的一个节点
查看>>
hash冲突的解决方法
查看>>
Asp.Net webconfig中使用configSections的用法
查看>>
mysql 二进制日志
查看>>
阻止putty变成inactive
查看>>
TP框架代码学习 学习记录 3.2.3
查看>>
doc文档生成带目录的pdf文件方法
查看>>
js数组,在遍历中删除元素(用 for (var i in arr)是无效的 )
查看>>
通过前端上传图片等文件的方法
查看>>