Skip to content

Screenshots

Taking screenshots requires automating a browser.

class DummyJob < Wayfarer::Base
  route.to :index

  def index
    browser.screenshot(path: "screenshot.png")
  end
end
class DummyJob < Wayfarer::Base
  route.to :index

  def index
    browser.save_screenshot("screenshot.png")
  end
end