How to get a full page screenshot using JS - TestCafe ?
Hey Joe- elmoufak,
This just emulates what JavaScript can usually see from inside the browser, here’s the script to achieve this:
var page = require('webpage').create();
page.open('http://github.com/', function () {
page.render('github.png');
phantom.exit();
});