跳至正文
Wener Notes

Headless

约 1 分钟阅读

Chrome Headless

  • DevToolsActivePort
    • 第一行为端口
    • 第二行为 路径 /devtools/browser/UUID
bash
chrome --headless --remote-debugging-port=9222 --disable-gpu --no-sandbox

# /devtools/inspector.html?ws=127.0.0.1:9222/devtools/page/6BD1FB9A428F479750451F5E652F544F
curl http://localhost:9222/json
text
--enable-blink-features=SomeNewFeature,SomeOtherNewFeature
--disable-blink-features=SomeOldFeature

FAQ

playwright vs puppeteer

New Headless

Debugging connection was closed. Reason: WebSocket disconnected

关联信息

反向链接、本文链接的其他页面和外部资料。

反向链接

  • Puppeteer
    笔记 · Chrome Devtools Protocol

    puppeteer · Chrome Devtools Protocol 客户端 · 参考 · 使用了 Chrome for Testing · Alpine 下有问题 #7746 · 在 Alpine 下额外安装,然后配置 PUPPETEEREXECUTABLEPATH

参考资料

其他外链3 条
最近更新commit 7ff784e编辑