LoginSignup
1
1

More than 5 years have passed since last update.

Rails Spec chromedriver エラー

Last updated at Posted at 2019-05-01

現場で使える Ruby on Rails5 速習実践ガイドの学習を進めている初心者です。

OS: Ubuntu
Rails 5.2.3

204ページにあるSpecの実行を行うと下記のようなエラーが起きます。

code

 Failures:

 1) タスク管理機能 一覧表示機能 ユーザーAがログインしているとき ユーザーAが作成したタスクが表示される
    Got 0 failures and 2 other errors:

 1.1) Failure/Error: visit login_path

      Selenium::WebDriver::Error::WebDriverError:
        unable to connect to chromedriver 127.0.0.1:9515



      # ./spec/system/tasks_spec.rb:14:in `block (4 levels) in <top (required)>'

 1.2) Failure/Error: raise Error::WebDriverError, cannot_connect_error_text

      Selenium::WebDriver::Error::WebDriverError:
        unable to connect to chromedriver 127.0.0.1:9515

解決策を享受していただきたいです。

自分で調べたところ
https://github.com/SeleniumHQ/selenium/issues/5248
上記のリンクに解決策っぽいのが記載されているみたいなのですが、具体的にどのような手順を踏めばいいのかさっぱりです。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1