Sometimes you need a specific version of ChromeDriver rather than the latest one — for example, to match a particular version of Google Chrome.
For this, you can use Chrome for Testing, a Chrome flavor specifically designed for web testing and automation.
The project provides a JSON file containing available versions and download links:
known-good-versions-with-downloads.json
For example, let’s say you need ChromeDriver version 151.0.7922.138. The JSON contains an entry for this version with download URLs for different platforms:
{
"version": "151.0.7922.138",
"revision": "1654411",
"downloads": {
"chromedriver": [
{
"platform": "linux64",
"url": "https://storage.googleapis.com/chrome-for-testing-public/151.0.7922.138/linux64/chromedriver-linux64.zip"
},
{
"platform": "win64",
"url": "https://storage.googleapis.com/chrome-for-testing-public/151.0.7922.138/win64/chromedriver-win64.zip"
}
]
}
}
The downloads.chromedriver section contains download links for different platforms: linux64, mac-arm64, mac-x64, win32, and win64.
Finding the URL using Chrome DevTools
The JSON file is quite large, but you don’t need to browse it manually. You can use Chrome DevTools to find the exact download URL.
Open the JSON file in Chrome, press F12, switch to the Console tab, and run:
JSON.parse(document.body.innerText).versions
.find(x => x.version === '151.0.7922.138')
?.downloads.chromedriver
.find(x => x.platform === 'win64')
?.url
The console will return the direct download URL:
https://storage.googleapis.com/chrome-for-testing-public/151.0.7922.138/win64/chromedriver-win64.zip
Simply change the version and platform in the command to get the ChromeDriver you need.
This approach requires no additional software or online JSON tools — everything can be done directly in Chrome DevTools.