0
0

More than 3 years have passed since last update.

elenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: crashed.の対処法

Posted at

開発環境

Ruby 2.5.1
Rails 6.0.2
ubuntu(WSL)

想定状況

ターミナルに$ bundle exec rspec spec/system/tasks_spec.rb
を入力すると以下のエラーが発生。


Failures:

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

     1.1) Failure/Error: visit login_path

          Selenium::WebDriver::Error::UnknownError:
            unknown error: Chrome failed to start: crashed.
              (unknown error: DevToolsActivePort file doesn't exist)
              (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)



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

     1.2) Failure/Error: Unable to infer file and line number from backtrace

          Selenium::WebDriver::Error::UnknownError:
            unknown error: Chrome failed to start: crashed.
              (unknown error: DevToolsActivePort file doesn't exist)
              (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)



          # #0 0x7f6845b4bd29 <unknown>

Finished in 2.41 seconds (files took 9.52 seconds to load)
1 example, 1 failure

Failed examples:

rspec ./spec/system/tasks_spec.rb:16 # タスク管理機能 一覧表示機能 ユーザーAがログインしているとき ユーザーAが作成したタスクが表示される

やったこと

  • こちらの対策Aと対策Bを行ったが、解消しない。

解決策

  • Gemfileのgem webdriversをコメントアウトする。

参考文献

0
0
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
0
0