Wrightbench
Workflows

Record with Codegen

Launch a project-local browser and generate a Playwright test with the native recorder.

Record launches the selected project's genuine Playwright browser and Inspector frontend. The browser is a separate headed window; the Inspector is embedded inside Wrightbench.

Start recording

  1. Select Record.
  2. Enter the initial URL.
  3. Choose Start recording.
  4. Interact with the headed browser and copy the generated test from Playwright's Inspector.
The Record destination before a session, with an initial URL field and a Start recording button
Record before a session: enter a starting URL and Start recording launches the project's own headed browser.

Wrightbench performs one best-effort focus handoff to the inspected page when the session starts. It does not repeatedly steal focus while you work.

An active Record session with Playwright's Inspector generating test code inside Wrightbench, the headed browser recording example.com and an End session control in the titlebar
During a session Playwright's Inspector generates the test inside Wrightbench; End session in the titlebar closes the headed browser.

End the session

Choose End session in Wrightbench's titlebar. This closes the Playwright-owned browser and returns Record to its launcher.

Stop Recording is different

Playwright's Stop Recording control changes recorder mode. It does not end Wrightbench's Record session or close the headed browser.

Missing browser binaries

If Playwright reports that an executable is missing, run the displayed remedy from the project, for example:

npx playwright install chromium