@playwright-repl/mcp 0.16.1 → 0.18.0
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 +4 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -113,7 +113,7 @@ When the extension is connected, the MCP server logs `Extension connected` to st
|
|
|
113
113
|
|
|
114
114
|
## Tool: `run_command`
|
|
115
115
|
|
|
116
|
-
One tool,
|
|
116
|
+
One tool, two input modes:
|
|
117
117
|
|
|
118
118
|
### Keyword commands (`.pw` syntax)
|
|
119
119
|
|
|
@@ -131,21 +131,15 @@ select "Country" "United States" # select dropdown option
|
|
|
131
131
|
localstorage-list # list localStorage
|
|
132
132
|
```
|
|
133
133
|
|
|
134
|
-
### Playwright API
|
|
134
|
+
### Playwright API / JavaScript
|
|
135
135
|
|
|
136
136
|
```
|
|
137
137
|
await page.url()
|
|
138
138
|
await page.title()
|
|
139
139
|
await page.locator('button').count()
|
|
140
140
|
await page.getByRole('link', { name: 'Get started', exact: true }).click()
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
### JavaScript / DOM
|
|
144
|
-
|
|
145
|
-
```
|
|
146
|
-
document.title
|
|
147
|
-
window.location.href
|
|
148
|
-
document.querySelectorAll('a').length
|
|
141
|
+
await page.evaluate(() => document.title)
|
|
142
|
+
await page.evaluate(() => document.querySelectorAll('a').length)
|
|
149
143
|
```
|
|
150
144
|
|
|
151
145
|
## Tool: `run_script`
|