Skip to content

Instantly share code, notes, and snippets.

View Seif-apprentus's full-sized avatar

Seif Eddine Slimene Seif-apprentus

  • Apprentus
  • Tunis
  • 09:03 (UTC +02:00)
View GitHub Profile
#!/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"