Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: follow up to aria ref in mcp tool (#35133)
Pavel Feldman2a53108cf065
diff --git a/packages/playwright-mcp/src/tools/snapshot.ts b/packages/playwright-mcp/src/tools/snapshot.tsindex 1495a6376e..03e7dd49d1 100644--- a/packages/playwright-mcp/src/tools/snapshot.ts+++ b/packages/playwright-mcp/src/tools/snapshot.ts@@ -141,7 +141,7 @@ async function runAndCaptureSnapshot(context: ToolContext, callback: () => Promi}async function captureAriaSnapshot(page: playwright.Page): Promise<ToolResult> {- const snapshot = await page.locator('html').ariaSnapshot({ _id: true } as any);+ const snapshot = await page.locator('html').ariaSnapshot({ ref: true });return {content: [{ type: 'text', text: `# Current page snapshot\n${snapshot}` }],};