Py学习  »  Python

无法从未创建的会话中连接到本地主机上的chrome:xxxx:chrome版本必须>=69.0.3497.0(使用Python的Robot框架)

Karthik K • 4 年前 • 778 次点击  

当我试图通过chrome web驱动程序连接到debuggerAddress时,出现以下错误

WebDriverException: Message: unknown error: cannot connect to chrome at localhost:xxxx from session not created: Chrome version must be >= 69.0.3497.0  (Driver info: chromedriver=2.44.609538 (b655c5a60b0b544917107a59d4153d4bf78e1b90),platform=Windows NT 6.1.7601 SP1 x86_64)

Chrome driver Chrome版本没有问题,因为相同的版本运行良好,创建不同的驱动程序代码。

工作驱动程序代码:

Create Webdriver    Chrome    executable_path=C:/WebDrivers/chromedriver.exe

发布驱动程序代码:

Create Webdriver    Remote    command_executor=http://localhost:yyyy    desired_capabilities=${chrome_cap}

系统详细信息

  • Chrome版本:70
  • Chrome驱动版本:2.44
  • 系统:Windows 7(64位)
Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/49693
 
778 次点击  
文章 [ 1 ]  |  最新文章 4 年前
DebanjanB
Reply   •   1 楼
DebanjanB    5 年前

此错误消息。。。

WebDriverException: Message: unknown error: cannot connect to chrome at localhost:xxxx from session not created: Chrome version must be >= 69.0.3497.0 (Driver info: chromedriver=2.44.609538 (b655c5a60b0b544917107a59d4153d4bf78e1b90)

…意味着 Chrome版本必须>=69.0

你的主要问题是 版本兼容性 在您使用的二进制文件之间,如下所示:

  • 你在用 铬驱动=2.44 最理想的支持 版本之间的版本 69.x至71.x

解决方案

根据最佳实践:


更新A

如果你没有权限升级chrome并且你需要使用 铬v70 你必须下载匹配的 铬河 根据讨论中的细节进行修订 RemoteDisconnected(“Remote end closed connection without” http.client.RemoteDisconnected: Remote end closed connection without response


更新B

根据您的评论更新使用特定版本的 二进制通过提及安装路径,您可以在讨论之后 Cannot find Chrome binary with Selenium in Python for older versions of Google Chrome