Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playwright should be able to view dom #103

Open
Sirofjelly opened this issue Apr 1, 2025 · 5 comments
Open

Playwright should be able to view dom #103

Sirofjelly opened this issue Apr 1, 2025 · 5 comments

Comments

@Sirofjelly
Copy link

It would be super nice if the playeright mcp could view the dom e.g. via the devtools in the browser. This would imo help it so much to write fully automated tests as it can navigate the page and select the respective locators.

@Skn0tt
Copy link
Member

Skn0tt commented Apr 1, 2025

playwright-mcp clients can already see the page as an ARIA Snapshot, which allows for writing proper role-based locators on accessible webpages. Maybe it'd make sense to add a browser_html function to get a DOM snapshot though.

@Sirofjelly
Copy link
Author

browser_html would be superb!

@sonicviz
Copy link

sonicviz commented Apr 3, 2025

+10

@Roland-Chao
Copy link

+1000

@7artur7
Copy link

7artur7 commented Apr 11, 2025

+1. Aria snapshot is not enough for data-testid for example, this property doesn't appear in results of browser_snapshot method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants