Using Selenium Java bindings.
I'm trying to write a short module that will take a full screenshot of a browser page (I know AShot exists but it is not maintained and has some issues for me).
As part of this I would like to know what the full page length is that I'm dealing with so I can calculate the number of shots I need to take, and any remainder at the bottom. There are many examples out there showing how to scroll to the bottom of a page (e.g. this question), but I am wondering if there is a way to make the JavascriptExecutor
return the value of the page length so I can use it in my script?