healenium-global
Version:
Globally self-healing wrapper for Playwright actions (click, fill, etc.)
27 lines (17 loc) ⢠606 B
Markdown
ā
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`.