This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Get the installed Chrome version (full version including the fourth segment) | |
CHROME_VERSION=$(google-chrome --version | awk '{print $3}' | cut -d '.' -f1-4) | |
# Construct the ChromeDriver URL | |
CHROMEDRIVER_URL="https://storage.googleapis.com/chrome-for-testing-public/${CHROME_VERSION}/linux64/chromedriver-linux64.zip" | |
echo "🚀 Detected Chrome version: $CHROME_VERSION" | |
echo "🔗 Downloading ChromeDriver from: $CHROMEDRIVER_URL" |