Firefoxをダウンロード 現時点の最新版は Firefox 56 Firefox をダウンロード — 無料ウェブブラウザー 起動オプションに-headlessをつければヘッドレスモードで起動します。 起動しますがヘッドレスなのでわかりませんw とりあえず起動してみる Firefox 45と同じプログラムではgeckodriverが見つからないとの旨のエラー。 Uncaught exception: Unable to find Mozilla geckodriver. Please download the server from https://github.com/mozilla/geckodriver/releases and place it somewhere on your PATH. More info at https://developer.mozilla.org/e
![【Ruby Mac】SeleniumでFirefoxをヘッドレスモードで使う](https://cdn-ak-scissors.b.st-hatena.com/image/square/98490efb765452ec1208286a15d2a55c39777d9a/height=288;version=1;width=512/https%3A%2F%2Flonely-logs.com%2Fwp-content%2Fuploads%2F2018%2F12%2F20171003200624.jpg)