I am working on a solution taking screenshots of websites. I use the default example mentioned in slimerjs.org to complete the task.
Screen shots are great with this tool, but I need to take pictures from the height of the screen. When capturing screens of websites such as http://www.yellowpages.com , I can get full-length screens without specifying any height parameters.
But when I try this url: http://votingbecause.usatoday.com/
I only get a screenshot with the resolution set (default: 1920x1080), I canβt get full-size images.
Since I use slimerjs, I can manipulate dom with jQuery. I need to find the full height of the website so that I can take a screenshot with this resolution
I tried
- document.height ()
- document.body.scrollheight
- screen.height
- $ (document) .height ()
- (and many others I found)
But all of them only gave the height of the viewport (website in sight)
The question is, how do I find the full scrollable height of a website?
source share