I am working on a solution capturing screen-shots of websites. I am using the default example mentioned at slimerjs.org to get the job done.
Screen-shots are great with this tool, but I need to take full height screen-shots of websites. When capturing screens of websites like http://www.yellowpages.com, I can get full length screens without having to mention any height parameter.
But when I try this url: http://votingbecause.usatoday.com/
I only get screenshot of the set resolution (default: 1920x1080), I can't get full length images.
Since I am using slimerjs, I can manipulate the dom by using jQuery. I need to find complete website height so that I can take screenshot of that resolution
I tried
- document.height()
- document.body.scrollheight
- screen.height
- $(document).height()
- (and many other which i found)
But all of these only gave the height of the viewport (website in view)
Question is, how to find the full scrollable height of the website?