1年ほど前に以下の記事を書きましたが、StableなGoogle Chromeでヘッドレスモードが使えるようになり、今となっては紛らわしい記述もあるので、新しく記事を書きます。ついでにFirefoxのヘッドレスモードも触ってみました。 SeleniumからHeadless Chromeを使ってみた - Qiita https://qiita.com/orangain/items/db4594113c04e8801aad Headless Chromeとは何か、なぜ注目されているかといった背景についてはこの記事を参照ください。 SeleniumからHeadless Chromeを使う SeleniumからGoogle Chromeを操作するにはChromeDriverが必要です。 環境 試した環境は以下のとおりです。 macOS Sierra 10.12.6 Google Chrome 66