Giter Site home page Giter Site logo

recap's Introduction

Recap is a utility that makes it easy to record, and replay user interactions. These user interactions can be translated to anything from site tours, to selenium tests.

Installation

You can install the recap bookmark

Console API

These commands can be executed in Chrome, or Firefox's web inspector.

recap.record(options)

Starts recording user interactions.

> recap.start("http"); # start recording only HTTP events
> recap.start("http", "dom"); # start recording HTTP & DOM events

recap.stop()

Stops recording user interactions

recap.actions

Collection of all actions recorded during recap.start(), and recap.stop().

> recap.actions
[ 
  {"type": "dom", "event": "click", xpath: "/path/to/element", selector: "jquerySelector" }
]

recap.actions.unshift(action)

adds a user interaction to the beginning. This allows you to easily chain actions together. For example:

> recap.actions.unshift("login", "goToDashboard")
> recap.play() # play login, and go to dashboard

Unshifts an action

Action recap.create(name)

Creates a new set of actions

Action recap.current

Returns the current action that's running

expect action.expect(attribute)

recap.saved()

Returns all saved user interactions

> recap.saved()
[
  { name: "login", desc: "login the user" },
  { name: "goToDashboard", desc: "loads the dashboard" }
]

recap.remove(name)

removes a saved recording

recap.load(name)

Loads a saved user interaction

recap.play()

plays the current user interaction

recap.transform(type)

transforms the current recap into something else.

> recap.transform("selenium")

recap's People

Stargazers

Tuğrul Can avatar

Watchers

Craig Condon avatar James Cloos avatar  avatar

recap's Issues

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.