This is an update to Full page screenshots with Python and Selenium updated to work with Python 3, and fix an issue with single pages.
Welcome to my blog
As I discover new things in my field and solve troublesome problems, I will attempt to document my finds here.
Currently, none of the major Selenium drivers (browsers) support the ability to easily take a screenshot of an entire web page. The following function takes multiple screenshots through the viewport and scrolls between screenshots, then stitches the resulting images into a single PNG.
I have been writing some automation code a few dozen websites, and I wanted to generate SSL keys, and I couldn’t get the `subprocess` call to work properly, so I thought I would post the final solution. The argument to `communicate()` is critical.