Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix(skill): run-code example needs to be function (#38966)

Simon Knottdf75427d3318
diff --git a/packages/playwright/src/mcp/terminal/SKILL.md b/packages/playwright/src/mcp/terminal/SKILL.md
index 42540bc2eb..b3f2eed795 100644
--- a/packages/playwright/src/mcp/terminal/SKILL.md
+++ b/packages/playwright/src/mcp/terminal/SKILL.md
@@ -100,7 +100,7 @@ playwright-cli tab-select 0
playwright-cli console
playwright-cli console warning
playwright-cli network
-playwright-cli run-code "await page.waitForTimeout(1000)"
+playwright-cli run-code "async page => await page.context().grantPermissions(['geolocation'])"
playwright-cli tracing-start
playwright-cli tracing-stop
```