≡ 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' =
![Use headless chromium with capybara and selenium webdriver - today!](https://cdn-ak-scissors.b.st-hatena.com/image/square/c8ec6f842587f90aa5832ca8aad086344d38bda8/height=288;version=1;width=512/https%3A%2F%2Ffaraday.ai%2Fblog%2Fcontent%2Fimages%2F2021%2F03%2Fengineering-hacks-generic-10.png)