Currently, I am facing an issue while trying to capture a screenshot of an Angular page using protractor and mocha. Our team has integrated protractor-screenshot-utils
as a dependency and added the necessary code in the conf.js file to modify the browser.takeScreenshot();
onPrepare: function() {
global.screenShotUtils = new screenShotUtils({
browserInstance : browser,
setAsDefaultScreenshotMethod : true
});
},
However, it seems that this approach does not fully override the default behavior, resulting in an incomplete screenshot of the Angular page (works fine for non-angular pages). The captured screenshot only displays what is visible in the browser viewport, excluding the rest of the page content, which brings me to my query...
I am wondering if there are alternative methods or workarounds to successfully capture a full-page screenshot of an Angular page using a combination of protractor and mocha?