1) You can use https://github.com/samnissen/watir-screenshot-stitch where
- Directly employing geckodriver's new full page screenshot functionality (only on Firefox).
- Screenshot stitching, paging down a given URL by the size of the viewport, capturing screenshots and adjoining them.
- Employing a bundled html2canvas script against the page to generate a png from a canvas element.
2) or use native instrument for your OS - https://paulhammond.org/webkit2png
In code will look like this
webkit2png https://stackguides.com/questions/60728482/can-anyone-suggest-how-to-take-screenshot-of-full-webpage-using-ruby-selenium
where:
- main command - webkit2png
- link page - all else