Update prepareTestEnv.sh

Added permissions for the chrome folders in an attempt to fix 
org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally
This commit is contained in:
Risto Lahtela 2018-12-27 19:55:11 +02:00 committed by GitHub
parent 0d587f527e
commit 94e62cb63c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -2,8 +2,12 @@
wget -N http://chromedriver.storage.googleapis.com/2.30/chromedriver_linux64.zip -P ~/
unzip ~/chromedriver_linux64.zip -d ~/
rm ~/chromedriver_linux64.zip
sudo chmod -R u=rwx,g=rwx /usr/bin/google-chrome-stable
sudo chmod -R u=rwx,g=rwx /usr/bin/X11/google-chrome-stable
sudo mv -f ~/chromedriver /usr/local/share/
sudo chmod +x /usr/local/share/chromedriver
sudo chmod u=rwx,g=rwx /usr/local/share/chromedriver
sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
whereis google-chrome-stable