|
|
|
@ -376,3 +376,22 @@ commands: |
|
|
|
|
command: | |
|
|
|
|
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') |
|
|
|
|
echo $CHROMEDRIVER_URL |
|
|
|
|
ZIPFILEPATH="/tmp/chromedriver.zip" |
|
|
|
|
echo "Downloading from $CHROMEDRIVER_URL" |
|
|
|
|
curl -f --silent $CHROMEDRIVER_URL > "$ZIPFILEPATH" |
|
|
|
|
|
|
|
|
|
BINFILEPATH="$HOME/bin/chromedriver-$VERSION" |
|
|
|
|
echo "Extracting to $BINFILEPATH" |
|
|
|
|
unzip -p "$ZIPFILEPATH" chromedriver > "$BINFILEPATH" |
|
|
|
|
|
|
|
|
|
echo Setting execute flag |
|
|
|
|
chmod +x "$BINFILEPATH" |
|
|
|
|
|
|
|
|
|
echo Updating symlink |
|
|
|
|
ln -nfs "$BINFILEPATH" ~/bin/chromedriver |
|
|
|
|
|
|
|
|
|
echo Removing ZIP file |
|
|
|
|
rm "$ZIPFILEPATH" |
|
|
|
|
|
|
|
|
|
echo Done |
|
|
|
|
chromedriver -v |
|
|
|
|