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:
@@ -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:**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user