LoginSignup
0
0

More than 5 years have passed since last update.

ChromeDriver利用時の "EOFError: end of file reached" の対処

Posted at

概要

RailsのSystemTestCaseや RSpecのfeature specでChromeDriverを利用している時
EOFError: end of file reached
というエラーでテストが落ちる場合がある。
この対処法について記載する。

原因

Chromeのバージョンに対してとChromeDriverのバージョンが低すぎる可能性がある。
最新のChromeDrverを入れて再実行すると直る。

Mac でのChromeDriverのアップデート

もしMacで、Homebrewを利用してChromeDriverをインストールしているなら、
一度ChromeDriverをアンインストールして、公式から入れ直す必要がある。
Homebrewでは最新のChromeDriverをインストール出来ないためだ。
下記コマンドで一度ChromeDriverをアンインストールする。

brew uninstall chromedriver

その後、公式からChromeDriverのバイナリを適切な場所に配置してやることで、表題のエラーを解消できる。
http://chromedriver.chromium.org/downloads

参考

https://stackoverflow.com/questions/5244887/eoferror-end-of-file-reached-issue-with-nethttp
https://stackoverflow.com/questions/17243225/eoferror-end-of-file-reached-error-using-selenium-android-webdriver%60
https://stackoverflow.com/questions/16864579/watir-chrome-driver-eoferror-end-of-file-reached-error

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