Level 1 of a free VS Code extension that helps repair Playwright locators. It ranks candidate locators using a deterministic token similarity score, then lets you apply the selected repair to the current editor selection.
Features
Run Playwright: Suggest Locator Repair from the Command Palette.
Enter the failed locator and candidate replacements, one per line or separated by semicolons.
Review ranked candidates and apply the selected replacement to an editor selection.
Requirements
VS Code 1.134 or newer.
A Playwright project is recommended, but Level 1 does not execute tests or require an AI provider.
Extension Settings
playwrightSelfHealingAgent.maxSuggestions: Maximum number of ranked candidates to show. The default is 5.
Known Issues
This first level does not inspect a live browser DOM, parse Playwright test reports, or automatically edit files without confirmation. Those are planned follow-up levels.
Release Notes
0.0.1
Initial Level 1 release.
Development
npm install
npm run compile
npm run lint
npm run package
Press F5 in VS Code to launch an Extension Development Host. Run the command from the Command Palette in that host.