UNPKG

healenium-global

Version:

Globally self-healing wrapper for Playwright actions (click, fill, etc.)

27 lines (17 loc) • 606 B
# healenium-global āœ… A globally applied self-healing plugin for Playwright. Automatically recovers from broken selectors (click, fill, check, etc.) without code changes. ## šŸ“¦ Installation ```bash npm install healenium-global ``` ## šŸš€ Usage In your Playwright test setup: ```ts import { patchPageGlobally } from 'healenium-global'; test('example test', async ({ page }) => { await patchPageGlobally(page); await page.click('selector-that-might-break'); }); ``` - Automatically heals failing selectors using fuzzy text matching. - Stores fallback selectors in `fallback-selectors.json`.