A simple codegen plugin for playwright. Playwright's native codegen isn't flexible enough for all use cases, especially for canvas based apps. Hopefully playwright will come up with something better and make this repo obsolete. Until then enjoy. Contributions are more than welcome.
Trackers:
Feature request Feature tracker
npm i --save-dev playwright-codegen
import { Codegen } from "playwright-codegen";
test("My codegen test", async ({ page }, testInfo) => {
await Codegen.start(page, testInfo); // launches a TS file that is updated by codegen
});