【问题标题】:Robotframework not able to open browser [duplicate]Robotframework无法打开浏览器[重复]
【发布时间】:2020-09-01 05:09:33
【问题描述】:

我面临以下问题:

SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 74
 (Driver info: chromedriver=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Windows NT 6.1.7601 SP1 x86_64)

我的PIP列表如下:

robotframework 3.2.1
robotframework-seleniumlibrary 3.3.1
selenium 3.141.0

我使用的是 Windows 7 64 位

【问题讨论】:

  • Chrome 使用的是什么版本?错误信息提示您的 chromedriver 版本与 Chrome 不匹配。
  • 错误似乎很明显:chrome 和 chrome 驱动程序版本不匹配。
  • 我的 chrome 版本是 81.0 64 位
  • 你的 chromedriver 支持 Chrome v74 - 升级它(或降级你的浏览器????)
  • 升级您的网络驱动程序,将解决您的问题。我也有同样的问题,一旦升级 chrome web 驱动程序就解决了。

标签: robotframework


【解决方案1】:

将您的 Chromederiver 升级到与您的 Chrome 相同的版本: https://chromedriver.chromium.org/downloads

【讨论】:

  • 为什么这被否决了?它完全是正确的答案。错误消息显示“此版本的 ChromeDriver 仅支持 Chrome 版本 74”。考虑到当前的 chrome 版本> 80,那是相当旧的 chromedriver。默认情况下,Chrome 会自动更新自身(并且操作没有提到已禁用),因此可以很安全地假设 chrome 比 chromedriver 更新 ..
猜你喜欢
  • 2018-03-10
  • 2019-04-12
  • 2017-02-19
  • 2017-07-13
  • 2021-07-15
  • 2019-09-19
  • 2021-06-10
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多