How to take complete web page screen shot using ruby with Watir
https://github.com/samnissen/watir-screenshot-stitch
Pre-requisite :
Gems to be installed :
gem install image_magick
gem install mini_magick
gem install watir-screenshot-stitch
Installed imagemagick at your machine :
https://imagemagick.org/script/download.php
for Mac:
brew install imagemagick
brew install ghostscript
Code to be used :-
require 'watir-screenshot-stitch'
path = "fullpage.png"
b = Watir::Browser.new :chrome
b.goto "https://www.optus.com.au/for-you/"
b.screenshot.save_stitch(path)