Skip to content

Commit c4bcbf2

Browse files
committed
fix: 优化 Pentest_playwright_mcp_Install 函数中的浏览器安装步骤
1 parent a0edfac commit c4bcbf2

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

f8x

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6297,11 +6297,10 @@ Pentest_playwright_mcp_Install(){
62976297
Echo_ALERT "$name installed"
62986298
else
62996299
npm install -g @playwright/mcp
6300-
cd /tmp && npm init -y && npm install @playwright/test
6301-
npx -y @playwright/test install chromium
6302-
npx -y playwright install chrome
6303-
npx -y playwright install --with-deps chromium
63046300
npm list -g @playwright/mcp && Echo_INFOR "Successfully installed $name" || Echo_ERROR3
6301+
# 安装浏览器(@playwright/mcp 需要 chrome-for-testing)
6302+
# npx -y playwright install --with-deps chrome
6303+
npx playwright install chromium
63056304
fi
63066305

63076306
}

0 commit comments

Comments
 (0)