How to take a full page screenshot with Ruby and Puppeteer

Install Puppeteer and Grover

npm i puppeteer
gem install grover

Configure Grover

require 'grover'

Grover.configure do |config|
  config.options = {
    full_page: true

Take full page screenshot and save to file"full-page.png", "wb") do |f|

Find out how to capture an element with Ruby and Puppeteer.

We created Urlbox to make converting HTML to images easy

Learn more about our website screenshot API.