nightwatch-html-reporter
nightwatch-html-reporter copied to clipboard
Screenshot not coming in other system
I am creating a zip file of the reports folder and sending it over email using nodemailer . But when the report is extracted and opened in other machine, it does not show screenshot. After verifying the path, i found it takes the path of local system. how can i configure screenshot path such that its accessible in other machine too.

Hi, there's an option to enable relative paths for screenshots. So, when creating the reporter pass the relativeScreenshots option as true, like this:
var reporter = new HtmlReporter({
// ... other options here
relativeScreenshots: true,
});