linux 和 ruby 上的 selenium webdriver 问题

Problem with selenium webdriver on linux with ruby

我重新安装了 ruby 2.3.1p112,但我的规范测试不起作用。 错误是:

Selenium::WebDriver::Error::SessionNotCreatedError: 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=Linux 4.15.0-47-generic x86_64)

你有两种选择来解决这个问题:

  1. 您可以卸载 chrome-stable 并安装最新版本的 chrome beta(这只是因为 linux 的 chrome 74 尚未发布)
  2. 您可以降级您的chrome驱动程序版本
bundle exec chromedriver-update 73.0.3683.68