Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    nightwatch-video-recorderpublic

    Nightwatch.js video screen recording via ffmpeg

    Record videos of Nightwatch.js test sessions.
    Uses ffmpeg to capture a (remote) webdriver desktop screen.

    Install

    npm install nightwatch-video-recorder

    Usage

    Add the following beforeEach/afterEach hooks:

    module.exports = {
      beforeEach: function (browser, done) {
        require('nightwatch-video-recorder').start(browser, done)
      },
      afterEach: function (browser, done) {
        require('nightwatch-video-recorder').stop(browser, done)
      }
    }

    Enable the video screen recording in your test settings:

    {
      "test_settings": {
        "default": {
          "videos": {
            "enabled": true,
            "delete_on_success": false,
            "path": "",
            "format": "mp4",
            "resolution": "1440x900",
            "fps": 15,
            "display": ":60",
            "pixel_format": "yuv420p"
          }
        }
      }
    }

    License

    Released under the MIT license.

    Author

    Sebastian Tschan

    install

    npm i nightwatch-video-recorder

    Downloadsweekly downloads

    439

    version

    1.1.0

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar