#!/bin/sh

echo "---> Starting Chrome driver installation"

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'

sudo apt-get update

sudo apt-get -y install google-chrome-stable

echo "Starting Google Chrome ..."
google-chrome --remote-debugging-port=9222 &

echo "---> Getting ChromeDriver and Selenium..."
wget "http://chromedriver.storage.googleapis.com/2.19/chromedriver_linux64.zip"
wget "http://selenium-release.storage.googleapis.com/2.47/selenium-server-standalone-2.47.1.jar"
unzip chromedriver_linux64.zip
sudo mv chromedriver /usr/local/bin
sudo mv selenium-server-standalone-2.47.1.jar /usr/local/bin/selenium.jar

echo "---> Launching Selenium-Server-Standalone..."
java -jar /usr/local/bin/selenium.jar -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver > /dev/null &
#!/bin/sh

echo "---> Starting Chrome driver installation"

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'

sudo apt-get update

sudo apt-get -y install google-chrome-stable

echo "Starting Google Chrome ..."
google-chrome --remote-debugging-port=9222 &

echo "---> Getting ChromeDriver and Selenium..."
wget "http://chromedriver.storage.googleapis.com/2.19/chromedriver_linux64.zip"
wget "http://selenium-release.storage.googleapis.com/2.47/selenium-server-standalone-2.47.1.jar"
unzip chromedriver_linux64.zip
sudo mv chromedriver /usr/local/bin
sudo mv selenium-server-standalone-2.47.1.jar /usr/local/bin/selenium.jar

echo "---> Launching Selenium-Server-Standalone..."
nohup java -jar /usr/local/bin/selenium.jar -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -port 4444 > /dev/null &
Set port for Selenium webdriver...hoping this does the trick
Set port for Selenium webdriver...hoping this does the trick
