mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Merge pull request #360 from dmitry-shibanov/v-dmshib/fix-chromedriver-directory
Add Chrome driver directory to path
This commit is contained in:
@@ -39,11 +39,14 @@ wget "https://chromedriver.storage.googleapis.com/$LATEST_CHROMEDRIVER_VERSION/c
|
||||
unzip chromedriver_linux64.zip
|
||||
rm chromedriver_linux64.zip
|
||||
|
||||
CHROMEDRIVER_BIN="/usr/bin/chromedriver"
|
||||
CHROMEDRIVER_DIR="/usr/local/share/chrome_driver"
|
||||
CHROMEDRIVER_BIN="$CHROMEDRIVER_DIR/chromedriver"
|
||||
|
||||
mkdir -p $CHROMEDRIVER_DIR
|
||||
mv "chromedriver" $CHROMEDRIVER_BIN
|
||||
chown root:root $CHROMEDRIVER_BIN
|
||||
chmod +x $CHROMEDRIVER_BIN
|
||||
echo "CHROMEWEBDRIVER=$CHROMEDRIVER_BIN" | tee -a /etc/environment
|
||||
ln -s "$CHROMEDRIVER_BIN" /usr/bin/
|
||||
echo "CHROMEWEBDRIVER=$CHROMEDRIVER_DIR" | tee -a /etc/environment
|
||||
|
||||
# Run tests to determine that the chromedriver installed as expected
|
||||
echo "Testing to make sure that script performed as expected, and basic scenarios work"
|
||||
|
||||
Reference in New Issue
Block a user