Puppeteer 对 Chrome for Test 与 Chromium 的混淆

问题描述 投票:0回答:1

在此链接中,https://pptr.dev/chromium-support,页面标题表示每个 Puppeteer 版本都支持 Chromium 版本。

但是,最新版本都说“Chrome for Test”而不是“Chromium”。 这是为什么?

而且,从有关 Chrome for Test 的内容来看,Chrome for Test 似乎是 Chrome 的一个版本,而不是 Chromium。 那么这是否意味着 Puppeteer 现在专门针对 Chrome 而不是 Chromium?我是否应该只从 CLI 运行 Chrome 进行测试,以使 puppeteer 连接到正在运行的实例,而不是完全连接到 Chromium?

google-chrome puppeteer chromium
1个回答
0
投票

Chrome for Test 是 Chrome 的新版本,专门用于测试/自动化。文档页面指出了 Puppeteer 在什么时候从捆绑 Chromium 构建切换到 Chrome 进行测试。相应地,较新的 Puppeteer 版本默认下载 Chrome 进行测试。您仍然可以使用 Chromium(您需要自行安装),但 Puppeteer 未明确测试与 Chromium 版本的兼容性。

附注有一个 issue 使此文档页面更加清晰。

© www.soinside.com 2019 - 2024. All rights reserved.