feat: Page DOM and Screenshot Capture for UA Testing#782
Draft
younglim wants to merge 4 commits into
Draft
Conversation
c21b1b9 to
2321eb9
Compare
…E_SAVE_PAGE_SCREENSHOT When enabled, saves full-page DOM, desktop viewport screenshot, and mobile viewport screenshot to the results directory under page-doms/. A dom-manifest.json maps each URL to its hash, file paths, and errors. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add documentation to README.md (env vars table) and AGENTS.md (env vars table + report output structure) for the new page capture feature. Both env vars are supported across all scan types: Website, Sitemap, Intelligent, LocalFile, and Custom. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2321eb9 to
a771f55
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: Page DOM and Screenshot Capture for UA Testing
Summary
OOBEE_SAVE_DOMenv var to save the full-page DOM HTML for each scanned pageOOBEE_SAVE_PAGE_SCREENSHOTenv var to save full-page desktop and mobile viewport screenshots for each scanned pagedomManifest.jsonmapping each page URL to its hash, saved file paths, and any errors encountered during captureHow it works
OOBEE_SAVE_DOM=1<results>/pageDOMs/<hash>-<truncated_path>.htmlOOBEE_SAVE_PAGE_SCREENSHOT=1pageDOMs/desktopPageScreenshots/and mobile PNG topageDOMs/mobilePageScreenshots//replaced by_, max 80 chars, for human readability-2,-3, etc. before the file extensiondevices['iPhone 11']profile. The viewport is resized in-place (no separate tab), then restored to the original desktop sizepageDOMs/domManifest.jsonis written when either env var is enabledOutput structure
Example
domManifest.json{ "generatedAt": "2026-07-06T13:22:06.000Z", "pages": [ { "url": "https://example.com/about", "hash": "a1b2c3d", "domFile": "pageDOMs/a1b2c3d-about.html", "desktopScreenshot": "pageDOMs/desktopPageScreenshots/a1b2c3d-about.png", "mobileScreenshot": "pageDOMs/mobilePageScreenshots/a1b2c3d-about.png", "errors": [] } ] }Files changed
src/crawlers/pageCapture.tssrc/crawlers/crawlDomain.tscapturePageData()after axe scansrc/crawlers/crawlSitemap.tscapturePageData()after axe scansrc/crawlers/crawlLocalFile.tscapturePageData()after axe scansrc/crawlers/custom/utils.tscapturePageData()after axe scansrc/combine.tswriteManifest()+resetCaptureEntries()post-crawlREADME.mdAGENTS.mdTest plan
OOBEE_SAVE_DOM=1— verify.htmlfiles appear inpageDOMs/OOBEE_SAVE_PAGE_SCREENSHOT=1— verify desktop and mobile PNGsdomManifest.jsoncontains all entriespageDOMs/)pageDOMs/directory is created-2suffix applied