playwrightcodegencopy
v0.1.1
Published
CLI to install and run Playwright codegen with automatic clipboard copy
Maintainers
Readme
playwrightcodegencopy
Playwright codegen with automatic clipboard copy.
This package helps you record steps in Playwright codegen and instantly paste the latest generated action with Ctrl+V, without repeatedly switching back to the recorder window to copy code manually.
Why Use It
- Opens normal Playwright codegen and keeps the familiar recording flow
- Automatically copies each newly recorded action to the clipboard
- Lets you click in codegen and paste the latest step immediately wherever you need it
- Adds a ready-to-use
codegen:copycommand to your project during installation
Quick Start
Install it into a Playwright project:
npx playwrightcodegencopy@latest installThen run:
npm run codegen:copy -- <url>Run Without Installing
npx playwrightcodegencopy@latest run <url>You can also run it directly:
npx playwrightcodegencopy@latest <url>Install Options
npx playwrightcodegencopy@latest install --project-dir .
npx playwrightcodegencopy@latest install --forceWhat Gets Added
- A local
scripts/codegen-copy.cjsfile - A
codegen:copyscript inpackage.json
Notes
- This package does not modify
playwright.config.ts - It relies on Playwright internals.
