Features
getCleanHTMLutility: New function to get cleaned HTML from a locator or page- Removes script, style, svg, head tags
- Keeps only essential attributes (aria-, data-, href, role, title, alt, etc.)
- Supports
searchoption to filter results (returns first 10 matching lines) - Supports
showDiffSinceLastCallto see changes since last snapshot - Supports
includeStylesto optionally keep style/class attributes
Changes
- Simplified
accessibilitySnapshotsearch: RemovedcontextLinesparameter, search now returns just matching lines instead of context around matches. Use.split('\n').slice()for pagination instead.