Playwright Logbook for VS CodeBrowse Playwright runs, investigate failures and retries, and compare test history without leaving your editor. Jump from a recorded error straight to your test source. Get startedInstall Playwright Logbook by krishnapollu from the VS Code Marketplace, or use:
Requires desktop VS Code 1.95+ and a local project folder on macOS, Windows or Linux. Remote SSH, containers and browser-based VS Code are unsupported; full screen-reader validation is ongoing. The extension displays saved results. Install the reporter in your Playwright project to collect them (Node.js 20+, Playwright 1.42+):
Add Logbook to your existing
Run your tests, then open Logbook in VS Code's activity bar:
Keep Browse your runsExpand a run in Recent Runs and choose Run overview. Review totals, project breakdowns and the cases list; click a test to inspect it. Use the sidebar search action to find a test in the selected run.
Investigate a failureSelect a test to see its error, assertion details and recorded source excerpt. Switch attempts to inspect Steps, Logs, Errors and Attachments. In History, select an earlier execution or choose Compare to review changes.
Choose Open failure location or Open test definition to navigate to your current checkout. Recorded line numbers may have moved. Commit source and diffs require Workspace Trust, local Git and locally available recorded revisions.
Screenshots show the extension's panels with sample Playwright results. Analyze a testThe test summary places ✧ Analyze with AI ▾ beside the source actions. On first use, choose an installed coding-agent chat extension or native VS Code Chat. Logbook remembers the agent separately for each workspace folder; later clicks prepare the task and open that agent directly. The arrow changes the saved agent without starting a handoff. Removed agents trigger a new picker. Logbook: Analyze Selected Test uses the same saved choice. No analysis section, context preview or AI response appears in Logbook; a brief editor notification reports the handoff result. Native VS Code Chat receives an unsent draft, including a declared chat participant when available. Codex, Antigravity, Amazon Q and Cline use their input-focus commands and VS Code's native paste routing to insert the full prepared task into the chat composer. Review the draft, choose the model in your agent and submit. No manual paste is required. For other installed agents, automatic insertion requires a supported input integration; unsupported inputs report an error so you can choose another agent. An installed/active label describes extension activation, not sign-in or model access. Logbook does not automatically send a request or read the agent's answer. The terminal Available in extension 0.2.15+. The terminal Framework loggersWinston's Console transport and Pino's stdout destination were verified with
reporter 0.3.0: their output appears in the corresponding attempt's Logs when
output capture is enabled. This captures output attributed by Playwright to the
test worker; browser-page console and separate server processes need forwarding.
Capture is bounded ( For a file-only logger, write to a per-test path and attach the file after flushing the logger:
The extension shows attachment metadata. Export with Bring CI results into your historyWith reporter 0.3.0+, export a run as a portable ZIP using the bundle and CI guide.
Imported runs join your local history. Import requires a trusted workspace; Logbook does not download CI artifacts or check out commits. Use a custom project folderFor a nested project, add workspace settings like these:
Or use Logbook: Select History Folder and Logbook: Configure Source Mapping.
Select the folder containing Need help?
Upgrading from the old repository preview? Uninstall it before installing the Marketplace edition:
Results stay in your local history folder. The extension makes no telemetry or automatic AI-upload requests. Review captured logs and screenshots before sharing. |

