mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 03:27:05 +00:00
Merge branch 'v-andrem/install-chrome-and-chromedriver' of github.com:AndreyMaslennikov/virtual-environments into v-andrem/install-chrome-and-chromedriver
This commit is contained in:
@@ -26,7 +26,8 @@ fi
|
||||
echo "Lastly, documenting what we added to the metadata file"
|
||||
DocumentInstalledItem "Google Chrome ($(google-chrome --version))"
|
||||
|
||||
CHROME_VERSION=$(google-chrome --version | grep -Eo "([0-9]+\.?){4}" | cut -d "." -f 1,2,3)
|
||||
CHROME_VERSION=$(google-chrome --product-version)
|
||||
CHROME_VERSION=${CHROME_VERSION%.*}
|
||||
|
||||
# Determine latest release of chromedriver
|
||||
# Compatibility of Google Chrome and Chromedriver: https://sites.google.com/a/chromium.org/chromedriver/downloads/version-selection
|
||||
@@ -73,4 +74,4 @@ mv "selenium-server-standalone-$SELENIUM_VERSION.jar" "/usr/share/java/selenium-
|
||||
echo "CLASSPATH=/usr/share/java/selenium-server-standalone.jar:.:$CLASSPATH" | tee -a /etc/environment
|
||||
|
||||
echo "Lastly, documenting what we added to the metadata file"
|
||||
DocumentInstalledItem "Selenium server standalone"
|
||||
DocumentInstalledItem "Selenium server standalone"
|
||||
|
||||
Reference in New Issue
Block a user