Skip to content

Ferrum (Chrome DevTools Protocol)

Google Chrome can be automated using Ferrum.

When Ferrum is in use, a Google Chrome process is accessible within jobs like so:

Wayfarer.config[:network][:agent] = :ferrum

class DummyWorker < Wayfarer::Worker
  route.to :index

  def index
    browser # => #<Ferrum::Browser ...>
  end
end

Configuring Ferrum

Wayfarer.config[:network][:agent] = :ferrum
Wayfarer.config[:ferrum][:options] = { headless: false, url: "http://chrome:3000" }
WAYFARER_AGENT=ferrum
WAYFARER_FERRUM_OPTIONS=headless:false,url:http://chrome:3000