LoginSignup
3
3

More than 3 years have passed since last update.

RSpecでCould not find Firefox binary (os=macosx)というエラーが発生した件

Posted at

RSpecでAjaxのコードのテストを実行したら、以下のエラーが発生しました。

Could not find Firefox binary (os=macosx). Make sure Firefox is installed or set the path manually with Selenium::WebDriver::Firefox::Binary.path=

環境

Ruby: 2.6.3
Rails: 5.2.3

解決策

以下のコマンドを実行。

$ brew cask install --appdir="/Applications" firefox

インストールに時間がかかりますが、最後に以下のメッセージが出たら完了です。

firefox was successfully installed!

これでエラーが解消されるはず。

参考記事

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