How to use the nightwatch/lib/utils/screenshots.writeScreenshotToFile function in nightwatch

To help you get started, we’ve selected a few nightwatch examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mucsi96 / nightwatch-api / packages / nightwatch-api / src / screenshots.ts View on Github external
return new Promise((resolve, reject) => {
    Screenshots.writeScreenshotToFile(fileName, screenshotData, err => {
      if (err) {
        return reject(err);
      }

      return resolve();
    });
  });
}

nightwatch

Easy to use Node.js based end-to-end testing solution for web applications using the W3C WebDriver API.

MIT
Latest version published 11 days ago

Package Health Score

92 / 100
Full package analysis