Skip to content

feat: add ability to capture DOM snapshots of specific elements#1098

Merged
shadowusr merged 2 commits into
masterfrom
users/shadowusr/users/shadowusr/TESTPLANE-530.implement-element-snapshots
Jun 18, 2025
Merged

feat: add ability to capture DOM snapshots of specific elements#1098
shadowusr merged 2 commits into
masterfrom
users/shadowusr/users/shadowusr/TESTPLANE-530.implement-element-snapshots

Conversation

@shadowusr

Copy link
Copy Markdown
Member

⚠️ This PR is built on top of #1097 — so only last commit needs review.

What's done?

Added ability to capture snapshots of individual elements.

Example usage:

const snapshotData = browser.unstable_captureDomSnapshot('.some-selector');

const anotherSnapshotData = browser.$('.another-selector').unstable_captureDomSnapshot();

@pkg-pr-new

pkg-pr-new Bot commented Jun 14, 2025

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/gemini-testing/testplane@1098

commit: 8266c91

Comment thread src/browser/commands/captureDomSnapshot.ts Outdated
Comment thread src/browser/commands/captureDomSnapshot.ts Outdated
@shadowusr
shadowusr force-pushed the users/shadowusr/users/shadowusr/TESTPLANE-530.implement-element-snapshots branch from 609ac8c to 8266c91 Compare June 18, 2025 14:07
@shadowusr
shadowusr merged commit 8836a50 into master Jun 18, 2025
5 checks passed
@shadowusr
shadowusr deleted the users/shadowusr/users/shadowusr/TESTPLANE-530.implement-element-snapshots branch June 18, 2025 14:11
KuznetsovRoman pushed a commit that referenced this pull request Jun 24, 2025
* feat: add ability to capture DOM snapshots of specific elements

* fix: fix review issues regarding undefined usage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants