I want to capture full-height screenshots from a Nightwatch test, using Browserstack - I can capture the visible screen, but not the entire document.
I've tried this:
browser.execute(function () {
// get document dimensions
}, [], function (result) {
// browser.resizeWindow(to value sent as result)
browser.saveScreenshot('filename.png');
});
but while the resulting image has the correct width, the height is limited to (I think) the resolution of the browser opened in Browserstack.
Is it possible to achieve this?