#!/bin/sh

wget "http://selenium-release.storage.googleapis.com/3.3/selenium-server-standalone-3.3.1.jar"
sudo mv selenium-server-standalone-3.3.1.jar /usr/bin/selenium.jar

wget "https://github.com/mozilla/geckodriver/releases/download/v0.15.0/geckodriver-v0.15.0-linux64.tar.gz"
sudo tar -zxvf geckodriver-v0.15.0-linux64.tar.gz
sudo mv geckodriver /usr/bin/geckodriver

echo "---> Launching Selenium-Server-Standalone..."
xvfb-run --server-args='-screen 0, 1024x768x16' java -Dwebdriver.gecko.driver=/usr/bin/geckodriver -jar /usr/bin/selenium.jar -port 4444 > /dev/null &
#!/bin/sh

wget "http://selenium-release.storage.googleapis.com/3.3/selenium-server-standalone-3.3.1.jar"
sudo mv selenium-server-standalone-3.3.1.jar /usr/bin/selenium.jar

wget "https://github.com/mozilla/geckodriver/releases/download/v0.15.0/geckodriver-v0.15.0-linux64.tar.gz"
mkdir geckodriver
tar -zxf geckodriver-v0.15.0-linux64.tar.gz -C geckodriver
export PATH=$PATH:$PWD/geckodriver

echo "---> Launching Selenium-Server-Standalone..."
xvfb-run --server-args='-screen 0, 1024x768x16' java -jar /usr/bin/selenium.jar -port 4444 > /dev/null &
Add geckodriver to PATH for Selenium tests on Travis-CI
Add geckodriver to PATH for Selenium tests on Travis-CI
