Skip to content

Commit

Permalink
ChromeDriver Version Matching
Browse files Browse the repository at this point in the history
  • Loading branch information
md-sikder committed Nov 22, 2024
1 parent d5b3168 commit 09683dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
CHROME_VERSION=$(google-chrome --version | grep -oP '\d+\.\d+\.\d+' | head -n1)
CHROME_MAJOR=$(echo "$CHROME_VERSION" | cut -d '.' -f 1)
# Fetch and install the matching ChromeDriver version
DRIVER_VERSION=$(curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_MAJOR")
# Download the matching version of ChromeDriver
DRIVER_VERSION=$(curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE")
echo "Installing ChromeDriver version: $DRIVER_VERSION"
wget -q "https://chromedriver.storage.googleapis.com/$DRIVER_VERSION/chromedriver_linux64.zip"
unzip chromedriver_linux64.zip
Expand Down

0 comments on commit 09683dd

Please sign in to comment.