wdio-screenshot icon indicating copy to clipboard operation
wdio-screenshot copied to clipboard

Emit the 'runner:screenshot' event

Open adenflorian opened this issue 6 years ago • 1 comments

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.

adenflorian avatar Apr 05 '18 15:04 adenflorian

Made a pull request. #91

IgorVodka avatar Nov 22 '18 19:11 IgorVodka