Closed syedfaizan closed 7 years ago
Try the following:
var driver = require('node-phantom-simple');
driver.create({ path: 'node_modules/slimerjs/src/slimerjs' }, function (err, browser) {
return browser.createPage(function (err, page) {
page.set('viewportSize', { width:1920, height:1080 }, function(err) {
// Viewport has been set.
});
// render page as screenshot here
browser.exit();
});
});
@Reewr Thanks buddy, that did it :+1:
I got this working perfectly , but i need to get a screenshot of higher resolution.
i tried this
please help.