release: playwriter@0.0.39, extension@0.0.66

- fix icon not updating on WS disconnect
- increase aria-labels auto-hide timeout to 30s
This commit is contained in:
Tommy D. Rossi
2026-01-03 17:38:28 +01:00
parent f9a2312a58
commit 1ad94f3930
8 changed files with 70 additions and 35 deletions
+3 -3
View File
@@ -108,18 +108,18 @@ await page.screenshot({ path: '/tmp/labeled-page.png' })
// Use the snapshot to find elements, then interact using aria-ref selector
await page.locator('aria-ref=e5').click()
// Labels auto-hide after 5 seconds, or remove manually:
// Labels auto-hide after 30 seconds, or remove manually:
await hideAriaRefLabels({ page })
```
**Important:** Labels auto-hide after 5 seconds to prevent stale labels. If the page HTML changes (navigation, dynamic content), call `showAriaRefLabels()` again to get fresh labels matching the current DOM.
**Important:** Labels auto-hide after 30 seconds to prevent stale labels. If the page HTML changes (navigation, dynamic content), call `showAriaRefLabels()` again to get fresh labels matching the current DOM.
**Features:**
- **Role filtering** - Only shows labels for interactive elements (buttons, links, inputs, etc.)
- **Visibility detection** - Skips elements covered by modals or overlays
- **Overlap prevention** - Skips labels that would overlap with already-placed ones
- **Color-coded by type** - Warm color scheme helps distinguish element types
- **Auto-hide** - Labels disappear after 5 seconds to prevent stale overlays
- **Auto-hide** - Labels disappear after 30 seconds to prevent stale overlays
**Color legend:**