Git Product home page Git Product logo

js--nightwatch-recorder's Introduction

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

js--nightwatch-recorder's People

Contributors

altryne avatar bitdeli-chef avatar catorda avatar ebrehault avatar jon-lau avatar jpoliva avatar jyotishir avatar philippechab avatar rudyrigot avatar sasalx avatar tjeufoolen avatar vvscode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

js--nightwatch-recorder's Issues

customClick

I was just wondering the output of the recorder is customClick but that is not part of vanilla Nightwatch.js

What is behind the curtain of customClick()

ERROR: the recorded sequence does not start with a url openning.

I get this error when I export NightWatcjJs code:

/*==============================================================================*/
/* Nightwatch Recorder generated Wed Oct 19 2016 23:04:04 GMT+0200 (CEST) */
/*==============================================================================*/

module.exports = {
 'test case': function(client) {
   return client
ERROR: the recorded sequence does not start with a url openning.
     .waitForElementPresent(x("//a[normalize-space(text())='What We Do']"))
     .click(x("//a[normalize-space(text())='What We Do']"))
     .waitForElementPresent(x("//a[normalize-space(text())='Read more']"))
     .click(x("//a[normalize-space(text())='Read more']"))

 }
};

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.