Metastabil
Metastabil

Reputation: 53

Error while using Chromedriver in Ruby on Rails

I need to test a project with capybara, selenium webdriver and chromedriver-helper, but I always get the following error message.

Selenium::WebDriver::Error::SessionNotCreatedError:
   session not created: This version of ChromeDriver only supports Chrome version 80

Curren Versions: capybara - 2.15.4 selenium-webdriver - 3.13.0 chromedriver-helper - 2.0.0

I tried to use other versions of all this gems, but I don't get the error fixed.

Upvotes: 1

Views: 1313

Answers (2)

iti
iti

Reputation: 21

In latest version of selenium-webdriver, there is no need of webdriver gem.

  • Remove the webdriver gem from Gemfile.
  • bundle install

This works for me.

Check for more details https://github.com/titusfortner/webdrivers/issues/247

Upvotes: 0

Roman Alekseiev
Roman Alekseiev

Reputation: 1920

Here's my gemfile to use google-chrome successfully:

gem 'capybara'
gem 'selenium-webdriver'
gem 'webdrivers', '~> 4.0'

Webdrivers gem will automatic download chromedriver that corresponds you your chrome version. Here is the link to gem. Hope it will help you

Upvotes: 4

Related Questions