File tree Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,23 @@ jobs:
3939 # Verify installation
4040 google-chrome --version
4141
42- # Install ChromeDriver
43- CHROME_VERSION=$(google-chrome --version | grep -oE '[0-9]+\.[0-9]+\.[0-9]+')
44- CHROMEDRIVER_VERSION=$(curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_VERSION%%.*}")
45- wget -O /tmp/chromedriver.zip "https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip"
46- sudo unzip /tmp/chromedriver.zip -d /usr/local/bin/
42+ # Install ChromeDriver using Chrome for Testing API (for Chrome 115+)
43+ CHROME_VERSION=$(google-chrome --version | grep -oE '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+')
44+ echo "Chrome version: $CHROME_VERSION"
45+
46+ # Use the new Chrome for Testing API for versions 115+
47+ CHROMEDRIVER_URL="https://storage.googleapis.com/chrome-for-testing-public/${CHROME_VERSION}/linux64/chromedriver-linux64.zip"
48+ echo "Downloading ChromeDriver from: $CHROMEDRIVER_URL"
49+
50+ wget -O /tmp/chromedriver.zip "$CHROMEDRIVER_URL" || {
51+ echo "Failed to download from Chrome for Testing, trying fallback..."
52+ # Fallback to latest stable if specific version fails
53+ LATEST_VERSION=$(curl -s "https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions.json" | grep -o '"version":"[^"]*' | head -1 | cut -d'"' -f4)
54+ wget -O /tmp/chromedriver.zip "https://storage.googleapis.com/chrome-for-testing-public/${LATEST_VERSION}/linux64/chromedriver-linux64.zip"
55+ }
56+
57+ sudo unzip /tmp/chromedriver.zip -d /tmp/
58+ sudo mv /tmp/chromedriver-linux64/chromedriver /usr/local/bin/
4759 sudo chmod +x /usr/local/bin/chromedriver
4860 chromedriver --version
4961
Original file line number Diff line number Diff line change 5858 "@typescript-eslint/eslint-plugin" : " ^8.45.0" ,
5959 "@typescript-eslint/parser" : " ^8.45.0" ,
6060 "browserify" : " ^17.0.0" ,
61- "chromedriver" : " ^130 .0.0 " ,
61+ "chromedriver" : " ^119 .0.1 " ,
6262 "eslint" : " ^9.36.0" ,
6363 "eslint-plugin-htm" : " ^1.0.1" ,
6464 "eslint-plugin-html" : " ^8.1.3" ,
You can’t perform that action at this time.
0 commit comments