nightwatch-record-windows
v1.0.2
Published
Nightwatch.js video screen recording via ffmpeg
Downloads
2
Maintainers
Readme
Nightwatch.js video screen recording via ffmpeg
Modified version of nightwatch-record made to work for Windows with ffmpeg and screen-capture-recorder.
Record videos of Nightwatch.js test sessions.
Installation
Using npm:
npm i -D nightwatch-record-windows
Add to your nightwatch.conf.js:
videos: {
fileName: "nightwatch", // Required field
nameAfterTest: true,
format: "mp4",
enabled: true,
deleteOnSuccess: false,
path: "",
fps: 15,
input: "video=screen-capture-recorder",
videoCodec: "mpeg4"
}
Add to your nightwatch hooks:
beforeEach: function (browser, done) {
require('nightwatch-record').start(browser, done);
},
afterEach: function (browser, done) {
require('nightwatch-record').stop(browser, done);
},
License
Released under the MIT license.