Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oscartavarez/cypress-recorder
https://github.com/oscartavarez/cypress-recorder
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/oscartavarez/cypress-recorder
- Owner: oscartavarez
- License: apache-2.0
- Created: 2018-11-18T22:06:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-13T23:17:04.000Z (about 2 years ago)
- Last Synced: 2024-08-17T08:07:10.668Z (6 months ago)
- Language: JavaScript
- Size: 2.36 MB
- Stars: 133
- Watchers: 6
- Forks: 20
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Cypress Recorder

Cypress recorder is a Chrome extension that records your browser interactions and generates a
[Cypress-io](https://github.com/cypress-io/cypress) script. Install it from the [Chrome Webstore](https://chrome.google.com/webstore/detail/puppeteer-recorder/djeegiggegleadkkbgopoonhjimgehda).
This project is pretty fresh, but does the following already:- Records clicks and type events.
- Add setViewPort and other useful clauses.
- Generates a Cypress script.
- Shows which events are being recorded.
- Copy to clipboard.
- Offers configuration options.
- Allows data-id configuration for element selection.> Note: we only record clicks etc. on a handful of elements, see the `elements-to-bind-to.js` and `dom-events-to-record.js` files in the code-generator folder for which events. This collection will be expanded in future releases.
## Usage
- Click the icon and hit Record.
- Hit tab after you finish typing in an `input` element.
- Click links, inputs and other elements.
- Wait for full page load on each navigation. The icon will switch from  to .
- Click Pause when you want to navigate without recording anything. Hit Resume to continue recording.## Background
Writing Cypress scripts for scraping, testing and monitoring can be tricky. A recorder / code generator can be helpful,
even if the code isn't perfect. This project builds on other projects (see [disclaimer](#user-content-credits--disclaimer)
below) but add extensibility, configurability and a smoother UI.## Development
1. Run: `git clone https://github.com/oscartavarez/cypress-recorder.git`
2. Build the project: `cd cypress-recorder && npm i && npm run dev`
2. Navigate to chrome://extensions
3. Make sure 'Developer mode' is checked
4. Click Load unpacked extension...
5. Browse to cypress-recorder/build and click Select## Credits & disclaimer
Cypress recorder is a slightly code customization for cypres.io base on the excelent work of
[Puppeteer recorder](https://github.com/checkly/puppeteer-recorder).## License
Apache 2