Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

demonstrator

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

demonstrator

Catpure progress of user tests and share it with your team

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

Demonstrator

Record the events and resulting html from a browser-monkey session.

Example

Record a single test

var demo = require('demonstrator');
var browser = require('browser-monkey');

describe('your awesome feature', function(){
  it('is a silver bullet', function(){
    var recorder = demo.recordSession(browser);

    return browser.find('.some-element').click().then(function(){
      // do some more typing, clicking etc.
      // then:
      recorder.send();
    })
  });
});

Record all tests

var demo = require('demonstrator');
var browser = require('browser-monkey');

demo.record(browser);

describe('your awesome feature', function(){
  it('is a silver bullet', function(){
    return browser.find('.some-element').click().then(function(){
      // do some more typing, clicking etc.
      // after the tests run the session will be sent to the server
    })
  });
});

FAQs

Package last updated on 28 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc