wdio-screenshot
wdio-screenshot copied to clipboard
Emit the 'runner:screenshot' event
This library doesn't seem to emit the runner:screenshot
event when it takes a screenshot.
Create a custom reporter that listens for runner:screenshot
this.on('runner:screenshot', function (payload) {
console.log('screenshot taken');
});
Then have a test call browser.saveDocumentScreenshot(fileName);
'screenshot taken' is never logged.
Made a pull request. #91