Plan/scripts/prepareTestEnv.sh
Risto Lahtela 94e62cb63c
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
2018-12-27 19:55:11 +02:00

17 lines
549 B
Bash

# Install chromedriver
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 u=rwx,g=rwx /usr/local/share/chromedriver
sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
whereis google-chrome-stable
whereis chromedriver
mysql -e 'CREATE DATABASE Plan;'