[Ruby on Rails] I get a warning when running RSpec because gem'chromedriver-helper' is deprecated.

Preface / Editing points

This article is the previous article [Ruby on Rails] I get a warning when executing RSpec due to a different gem version. This is a continuation of, but since it was a completely different warning, I divided it into two.

2020.10.10 In the comments, I pointed out the difference in my interpretation, so I corrected that point.


Ruby 2.5.7 Rails 5.2.4

gem gem 'rspec-rails', '~> 3.6'


When I wrote the test code using RSpec and executed it, the following warning message appeared.

$ rspec spec/models/tag_spec.rb 

2020-10-09 09:13:13 WARN Selenium [DEPRECATION] Selenium::WebDriver::Chrome#driver_path= is deprecated. Use Selenium::WebDriver::Chrome::Service#driver_path= instead.

This isn't an error, so the test runs fine, but I can't afford to leave it out every time, so I'll fix it as well.


The content of the warning text, Selenium::WebDriver::Chrome#driver_path= is deprecated. Because the driver_path = method of the Chrome class is deprecated Selenium::WebDriver::Chrome::Service#driver_path= instead. The message is to use the driver_path = method of the Service class instead.

As written here, my Gemfile also had a gem'chromedriver-helper', so I'll remove it first. Next alternative Write gem'webdrivers'.


$ bundle install

I was able to solve it with.


If you have any questions, differences in interpretation, or discomfort in the description method, we would appreciate it if you could point them out in the comments.

Thank you for reading until the end.

Reference site

I have published the files I actually use on my GitHub, so I hope you can refer to that as well! GitHub - MasaoSasaki/matchi

Other Qiita --Procedure for migrating from unsupported chromedriver-helper to webdrivers gem Qiita --What's new in rspec-rails 3.7! I tried using System Spec

Recommended Posts

[Ruby on Rails] I get a warning when running RSpec because gem'chromedriver-helper' is deprecated.
[Ruby on Rails] I get a warning when executing RSpec due to a different gem version.
I get a Ruby version error when I try to start Rails.
Introducing Rspec, a Ruby on Rails test framework
I made a portfolio with Ruby On Rails
Ruby on Rails Tutorial Troublesome notes when running on Windows
[Ruby On Rails] When a model unit test is performed with RSpec using FactoryBot, an error occurs because the foreign key is not entered.
Beginner Ruby on Rails What I learned is being summarized
I want to add a browsing function with ruby on rails
Remedy for "A server is already running." Error when running rails s
[Ruby on Rails] What is Bcrypt?
I was a little addicted to running old Ruby environment and old Rails
[Ruby on Rails] View test with RSpec
[Rails] warning: constant Gem :: ConfigMap is deprecated
[Ruby on Rails] Controller test with RSpec
[Ruby on Rails] Model test with RSpec
What to do if you get an "A server is already running." Error when you try to start the rails server
[Ruby On Rails] Error in test using RSpec MySQL client is not connected
[Ruby on Rails] Until the introduction of RSpec
Introducing Rspec with Ruby on Rails x Docker
When the Ruby on Rails terminal rolls back
I tried running Ansible on a Docker container
(Ruby on Rails6) Creating data in a table
I tried running Java on a Mac terminal
Rspec: I want to test the post-execution state when I set a method on subject
Ruby on Rails Incorrect string value error resolution when posting a form in Japanese
[Ruby on rails] When executing the heroku command, bash: heroku: command not found is displayed. [Rails tutorial]
I have a question. I get an error when playing a video in Listview on android.
[Introduction] Try to create a Ruby on Rails application
Build a Ruby on Rails development environment on AWS Cloud9
Run Ruby on Rails RSpec tests with GitHub Actions
[Ruby] I can't install puma on Mac [Rails, etc.]
What I stumbled upon when installing Ruby on Ubuntu
[Ruby on Rails] I want to get the URL of the image saved in Active Storage
[Ruby on Rails] Carousel of bootstrap4 is implemented as a slide show using each method.
When I run rails: db: migrate, I get "Directly inheriting from ActiveRecord :: Migration is not supported."