/js--nightwatch-recorder

:crescent_moon: :watch: NightwatchJs recorder for Chrome

Primary LanguageJavaScriptGNU General Public License v2.0GPL-2.0

Nightwatch.js test recorder extension for Google Chrome

RUS | Based on Ressurectio

Installation

  1. Clone repo or download and extract
  2. Go to Chrome Tools / Extensions
  3. Expand Developer mode
  4. Click Load unpacked extension...
  5. Select folder with repo
  6. Use extension!

Usage

Click on the extension icon, optionally enter the start URL, and click Go.

Then execute your usage scenario, all the events will be recorded.

By right-clicking on the page, you might also record some assertion (about the current url, about existing text, etc., depending on clicked element).

You can request a screenshot at any moment (they will be produced everytime you run the resulting test).

You might also record some comments (click again on the extension icon, and click Add comment).

When you are done, click again on the extension icon, and click Stop recording.

Now, generate the test template script by clicking Export Nightwatch.js.

When running in Nightwatch.js, it should play your entire scenario and generate the screenshots.

Future features

Implement more mouse events, like drag & drop and mousewheel.

Credits

Author

Contributors

Athyk