Cursor通过mcp调用playwright示例
调用打开百度官网,输入测试点击搜索并截图。打开聊天窗口可以看到多了个agent。cursor mcp配置。ursor开启agent。
·
修改playwright安装目录
set PLAYWRIGHT_BROWSERS_PATH=D:\custom-path\ms-playwright
npx playwright install
cursor mcp配置
{
"mcpServers": {
"playwright": {
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"@executeautomation/playwright-mcp-server",
"--browser-type=chrome"
],
"env": {
"PLAYWRIGHT_BROWSERS_PATH": "D:\\custom-path\\ms-playwright"
}
}
}
}
Cursor开启agent
- 打开聊天窗口可以看到多了个agent
测试一条指令
调用打开百度官网,输入测试点击搜索并截图。
保存的图片
更多推荐
所有评论(0)