6

When driving chrome using ruby selenium driver, I get

/home/travis/.rvm/gems/ruby-2.6.2/gems/selenium-webdriver-3.141.5926/lib/selenium/webdriver/remote/response.rb:72:in `assert_ok': session not created: Chrome version must be between 70 and 73 (Selenium::WebDriver::Error::SessionNotCreatedError)

How do I resolve this issue? Downgrading chrome is not something I want to do.

american-ninja-warrior
  • 7,397
  • 11
  • 46
  • 80
  • Possible duplicate of [Session not created exception: Chrome version must be >= x.y.z when using Selenium Webdriver with Chrome](https://stackoverflow.com/questions/49318748/session-not-created-exception-chrome-version-must-be-x-y-z-when-using-seleni) – anothermh Apr 24 '19 at 05:41
  • Why was this downvoted? I'm having the same issue. Chrome was auto-upgraded to v74 yesterday and now selenium is broken. – Shagymoe Apr 25 '19 at 20:52
  • @american-ninja-warrior did you find a solution? – Shagymoe Apr 25 '19 at 22:09
  • I think I did the manual download tarball and install thing .... – american-ninja-warrior Apr 28 '19 at 19:24

1 Answers1

1

Apparently the chromedriver-helper gem was deprecated. I switched to using the webdrivers gem and it fixed the issue.

In Gemfile replace: gem 'chromedriver-helper'

With: gem 'webdrivers', '~> 3.0'

natsbat4ws
  • 67
  • 2
  • 8