@playwright/mcp 0.0.35-alpha-2025-08-28 → 0.0.35-alpha-2025-08-30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -1
- package/lib/tools/tabs.js +1 -1
- package/lib/tools/verify.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -80,7 +80,7 @@ For more information, see the [Codex MCP documentation](https://github.com/opena
|
|
|
80
80
|
|
|
81
81
|
#### Or install manually:
|
|
82
82
|
|
|
83
|
-
Go to `Cursor Settings` -> `MCP` -> `Add new MCP Server`. Name to your liking, use `command` type with the command `npx @playwright/mcp`. You can also verify config or add command like arguments via clicking `Edit`.
|
|
83
|
+
Go to `Cursor Settings` -> `MCP` -> `Add new MCP Server`. Name to your liking, use `command` type with the command `npx @playwright/mcp@latest`. You can also verify config or add command like arguments via clicking `Edit`.
|
|
84
84
|
|
|
85
85
|
</details>
|
|
86
86
|
|
|
@@ -705,5 +705,52 @@ http.createServer(async (req, res) => {
|
|
|
705
705
|
|
|
706
706
|
</details>
|
|
707
707
|
|
|
708
|
+
<details>
|
|
709
|
+
<summary><b>Verify (opt-in via --caps=verify)</b></summary>
|
|
710
|
+
|
|
711
|
+
<!-- NOTE: This has been generated via update-readme.js -->
|
|
712
|
+
|
|
713
|
+
- **browser_verify_element_visible**
|
|
714
|
+
- Title: Verify element visible
|
|
715
|
+
- Description: Verify element is visible on the page
|
|
716
|
+
- Parameters:
|
|
717
|
+
- `role` (string): ROLE of the element. Can be found in the snapshot like this: `- {ROLE} "Accessible Name":`
|
|
718
|
+
- `accessibleName` (string): ACCESSIBLE_NAME of the element. Can be found in the snapshot like this: `- role "{ACCESSIBLE_NAME}"`
|
|
719
|
+
- Read-only: **true**
|
|
720
|
+
|
|
721
|
+
<!-- NOTE: This has been generated via update-readme.js -->
|
|
722
|
+
|
|
723
|
+
- **browser_verify_list_visible**
|
|
724
|
+
- Title: Verify list visible
|
|
725
|
+
- Description: Verify list is visible on the page
|
|
726
|
+
- Parameters:
|
|
727
|
+
- `element` (string): Human-readable list description
|
|
728
|
+
- `ref` (string): Exact target element reference that points to the list
|
|
729
|
+
- `items` (array): Items to verify
|
|
730
|
+
- Read-only: **true**
|
|
731
|
+
|
|
732
|
+
<!-- NOTE: This has been generated via update-readme.js -->
|
|
733
|
+
|
|
734
|
+
- **browser_verify_text_visible**
|
|
735
|
+
- Title: Verify text visible
|
|
736
|
+
- Description: Verify text is visible on the page. Prefer browser_verify_element_visible if possible.
|
|
737
|
+
- Parameters:
|
|
738
|
+
- `text` (string): TEXT to verify. Can be found in the snapshot like this: `- role "Accessible Name": {TEXT}` or like this: `- text: {TEXT}`
|
|
739
|
+
- Read-only: **true**
|
|
740
|
+
|
|
741
|
+
<!-- NOTE: This has been generated via update-readme.js -->
|
|
742
|
+
|
|
743
|
+
- **browser_verify_value**
|
|
744
|
+
- Title: Verify value
|
|
745
|
+
- Description: Verify element value
|
|
746
|
+
- Parameters:
|
|
747
|
+
- `type` (string): Type of the element
|
|
748
|
+
- `element` (string): Human-readable element description
|
|
749
|
+
- `ref` (string): Exact target element reference that points to the element
|
|
750
|
+
- `value` (string): Value to verify. For checkbox, use "true" or "false".
|
|
751
|
+
- Read-only: **true**
|
|
752
|
+
|
|
753
|
+
</details>
|
|
754
|
+
|
|
708
755
|
|
|
709
756
|
<!--- End of tools generated section -->
|
package/lib/tools/tabs.js
CHANGED
package/lib/tools/verify.js
CHANGED
|
@@ -86,7 +86,7 @@ const verifyList = defineTabTool({
|
|
|
86
86
|
}
|
|
87
87
|
const ariaSnapshot = `\`
|
|
88
88
|
- list:
|
|
89
|
-
${itemTexts.map(t => ` -
|
|
89
|
+
${itemTexts.map(t => ` - listitem: ${javascript.escapeWithQuotes(t, '"')}`).join('\n')}
|
|
90
90
|
\``;
|
|
91
91
|
response.addCode(`await expect(page.locator('body')).toMatchAriaSnapshot(${ariaSnapshot});`);
|
|
92
92
|
response.addResult('Done');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playwright/mcp",
|
|
3
|
-
"version": "0.0.35-alpha-2025-08-
|
|
3
|
+
"version": "0.0.35-alpha-2025-08-30",
|
|
4
4
|
"description": "Playwright Tools for MCP",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"debug": "^4.4.1",
|
|
44
44
|
"dotenv": "^17.2.0",
|
|
45
45
|
"mime": "^4.0.7",
|
|
46
|
-
"playwright": "1.
|
|
47
|
-
"playwright-core": "1.
|
|
46
|
+
"playwright": "1.56.0-alpha-1756505518000",
|
|
47
|
+
"playwright-core": "1.56.0-alpha-1756505518000",
|
|
48
48
|
"ws": "^8.18.1",
|
|
49
49
|
"zod": "^3.24.1",
|
|
50
50
|
"zod-to-json-schema": "^3.24.4"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@anthropic-ai/sdk": "^0.57.0",
|
|
54
54
|
"@eslint/eslintrc": "^3.2.0",
|
|
55
55
|
"@eslint/js": "^9.19.0",
|
|
56
|
-
"@playwright/test": "1.
|
|
56
|
+
"@playwright/test": "1.56.0-alpha-1756505518000",
|
|
57
57
|
"@stylistic/eslint-plugin": "^3.0.1",
|
|
58
58
|
"@types/debug": "^4.1.12",
|
|
59
59
|
"@types/node": "^22.13.10",
|