zinserjan / wdio-screenshot

A WebdriverIO plugin. Additional commands for taking screenshots with WebdriverIO.
MIT License
109 stars 43 forks source link

Emit the 'runner:screenshot' event #86

Open adenflorian opened 6 years ago

adenflorian commented 6 years ago

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.

IgorVodka commented 5 years ago

Made a pull request.

91