This project was initiated due to the changes in the ChromeDriver release process starting with version M115 of Chrome. The ChromeDriver release process has been integrated with that of Chrome, and the latest Chrome + ChromeDriver releases per release channel are available at the Chrome for Testing (CfT) availability dashboard.
Given these changes, it's crucial to have a reliable mechanism to match the installed version of Chrome with the corresponding ChromeDriver binary. This project serves to automate the process of downloading and installing the appropriate version of ChromeDriver based on the installed version of Chrome.
For detailed information regarding version selection, you can refer to the official ChromeDriver version selection guide.
- Bash Shell
- Google Chrome Installed
wgetunzipjq(Command-line JSON processor)
git clone https://github.com/CrypVestAi/chrome-driver-installer.git
cd chrome-driver-installerMake the script executable and run it:
chmod +x install_chromedriver.sh
./install_chromedriver.shThis will install the appropriate Chromedriver in /usr/local/bin.
- The script first determines the platform and architecture it’s running on.
- It then gets the currently installed Chrome version.
- Using the Chrome version, it fetches the corresponding Chromedriver version.
- Downloads the appropriate Chromedriver based on the determined platform and Chrome version.
- Unzips and moves the Chromedriver to
/usr/local/bin. - Cleans up by removing the downloaded zip file and temporary directories.
- macOS (x64 & arm64)
- Linux (x64)
- Windows (x64 & x32)
Contributions, issues, and feature requests are welcome! Feel free to check issues page.
Nifemi Alpine
Give a ⭐️ if this project helped you!