≡ UPDATE: we have a new version of this post out that resolves some of the gotchas below. Here's a Rubyist's magic incantation to run headless chromium with selenium-webdriver and capybara: (it will be similar in other languages) require 'selenium-webdriver' Capybara.register_driver :headless_chromium do |app| caps = Selenium::WebDriver::Remote::Capabilities.chrome( "chromeOptions" => { 'binary' =