在 Chrome for Testing 可用性資訊主頁上,您可以查看每個 Chrome 發布管道適用的最新跨平台 Chrome for Testing 版本和資產。
使用 npm 下載
如要為平台下載 Chrome for Testing 二進位檔,最簡單的方法是使用我們的 @puppeteer/browsers 指令列公用程式 (可透過 npm 取得)。例如:
# Download the latest available Chrome for Testing binary corresponding to the Stable channel.
npx @puppeteer/browsers install chrome@stable
# Download a specific Chrome for Testing version.
npx @puppeteer/browsers install chrome@116.0.5793.0
# Download the latest available ChromeDriver version corresponding to the Canary channel.
npx @puppeteer/browsers install chromedriver@canary
# Download a specific ChromeDriver version.
npx @puppeteer/browsers install chromedriver@116.0.5793.0
使用 JSON API 端點下載
如要自行建構自動化指令碼來下載這些二進位檔,請查看 JSON API 端點,瞭解各 Chrome 發布管道 (穩定版、Beta 版、開發人員版、Canary 版) 的最新可用版本。
下載每個提交版本的 Chrome for Testing 建構版本
除了上述每個 Chrome 版本的 Chrome for Testing 版本外,自 2025 年 3 月起,您也可以下載每個提交的 Chrome for Testing 建構版本。這兩者用途略有不同,主要目的是加快 Chrome 錯誤二分搜尋的速度,並提高精確度。