|
|
|
@ -376,8 +376,10 @@ commands: |
|
|
|
|
- run: |
|
|
|
|
name: install-chromedriver-custom-linux |
|
|
|
|
command: | |
|
|
|
|
google-chrome --version > version.txt |
|
|
|
|
VERSION=$(grep -Eo '[0-9]+\.' < version.txt | head -1) |
|
|
|
|
CHROMEDRIVER_URL=$(curl -s 'https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json' | jq '.channels.Stable.downloads.chromedriver[] | select(.platform == "linux64") | .url' | tr -d '"') |
|
|
|
|
CHROMEDRIVER_URL=$(curl -s 'https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json' | jq '.versions[] | select(.version | startswith("116")) | .downloads.chrome[] | select(.platform == "linux64") | .url' | tail -n1 | tr -d '"') |
|
|
|
|
CHROMEDRIVER_URL=$(curl -s 'https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json' | jq --arg v "$VERSION" '.versions[] | select(.version | startswith($v)) | .downloads.chromedriver[] | select(.platform == "linux64") | .url' | tail -n1 | tr -d '"') |
|
|
|
|
echo $CHROMEDRIVER_URL |
|
|
|
|
ZIPFILEPATH="/tmp/chromedriver.zip" |
|
|
|
|
echo "Downloading from $CHROMEDRIVER_URL" |
|
|
|
|