Float on the flow

とあるエンジニアのブログ。「ゆったり・しっかり」がモットー。

RSpecでの「Selenium::WebDriver::Chrome#driver_path= is deprecated.」を修正する

RSpecでテストを書いたところ、
`Selenium::WebDriver::Chrome#driver_path= is deprecated.`
というエラーが発生。

環境は`Rails 5.2.3, rspec-rails 3.8.1`です。

これらの記事を参考にして、対処しました。
https://blog.tamesuu.com/2019/06/08/274/
https://qiita.com/jnchito/items/f9c3be449fd164176efa

 

Gemfile

- gem 'chromedriver-helper'
+ gem 'webdrivers'

 

console

$ bundle install

これで解決できました。

 

---

最初はQiita用で下書きしてましたが、ほぼ参考サイトそのままでしかなかったので個人ブログの方で公開。