Puppeteer 是一个 Node 库,它提供了一个高级 API 来通过 DevTools 协议控制无头 Chrome 或 Chromium。它允许你从浏览器之外的环境(即命令行)与Chromium进行交互,可以让用户界面测试自动化变得轻而易举。还可以用来生成网页快照和PDF文件。
在线演示 免费下载
本文链接:Puppeteer - 谷歌 Headless Chrome Node API
编译来源:梦想天空 ◆ 关注前端开发技术 ◆ 分享网页设计资源