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.
You can install the recap bookmark
These commands can be executed in Chrome, or Firefox's web inspector.
Starts recording user interactions.
> recap.start("http"); # start recording only HTTP events
> recap.start("http", "dom"); # start recording HTTP & DOM events
Stops recording user interactions
Collection of all actions recorded during recap.start()
, and recap.stop()
.
> recap.actions
[
{"type": "dom", "event": "click", xpath: "/path/to/element", selector: "jquerySelector" }
]
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
Creates a new set of actions
Returns the current action that's running
Returns all saved user interactions
> recap.saved()
[
{ name: "login", desc: "login the user" },
{ name: "goToDashboard", desc: "loads the dashboard" }
]
removes a saved recording
Loads a saved user interaction
plays the current user interaction
transforms the current recap into something else.
> recap.transform("selenium")