I\'m looking at Selenium Server at the moment, and I don\'t seem to notice a driver that supports headless browser testing.
Unless I\'m mistaken, it doesn\'t support
With ruby and macOS: brew install phantomjs then:
brew install phantomjs
driver = Selenium::WebDriver.for :phantomjs