Skip to content

Instantly share code, notes, and snippets.

@preetchaahal
Forked from ziadoz/install.sh
Created August 19, 2018 03:06
Show Gist options
  • Save preetchaahal/aabab33e87d7f3b050ad1d05b5d7fe8f to your computer and use it in GitHub Desktop.
Save preetchaahal/aabab33e87d7f3b050ad1d05b5d7fe8f to your computer and use it in GitHub Desktop.

Revisions

  1. @ziadoz ziadoz revised this gist Nov 19, 2017. 2 changed files with 6 additions and 6 deletions.
    10 changes: 5 additions & 5 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@ SELENIUM_STANDALONE_VERSION=3.4.0
    SELENIUM_SUBDIR=$(echo "$SELENIUM_STANDALONE_VERSION" | cut -d"." -f-2)

    # Remove existing downloads and binaries so we can start from scratch.
    rm ~/google-chrome-stable_current_amd64.deb
    sudo apt-get remove google-chrome-stable
    rm ~/selenium-server-standalone-*.jar
    rm ~/chromedriver_linux64.zip
    sudo rm /usr/local/bin/chromedriver
    @@ -23,10 +23,10 @@ sudo apt-get update
    sudo apt-get install -y unzip openjdk-8-jre-headless xvfb libxi6 libgconf-2-4

    # Install Chrome.
    wget -N https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -P ~/
    sudo dpkg -i --force-depends ~/google-chrome-stable_current_amd64.deb
    sudo apt-get -f install -y
    sudo dpkg -i --force-depends ~/google-chrome-stable_current_amd64.deb
    sudo curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add
    sudo echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list
    sudo apt-get -y update
    sudo apt-get -y install google-chrome-stable

    # Install ChromeDriver.
    wget -N http://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip -P ~/
    2 changes: 1 addition & 1 deletion start-chrome.sh
    Original file line number Diff line number Diff line change
    @@ -15,6 +15,6 @@ start-chrome-headless() {
    }

    # Start
    start-chrome
    # start-chrome
    # start-chrome-debug
    # start-chrome-headless
  2. @ziadoz ziadoz revised this gist Jul 28, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install.sh
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,7 @@ sudo rm /usr/local/bin/selenium-server-standalone.jar

    # Install dependencies.
    sudo apt-get update
    sudo apt-get install -y openjdk-8-jre-headless xvfb libxi6 libgconf-2-4
    sudo apt-get install -y unzip openjdk-8-jre-headless xvfb libxi6 libgconf-2-4

    # Install Chrome.
    wget -N https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -P ~/
  3. @ziadoz ziadoz revised this gist Jul 26, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install.sh
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@
    # http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04

    # Versions
    CHROME_DRIVER_VERSION=2.31
    CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`
    SELENIUM_STANDALONE_VERSION=3.4.0
    SELENIUM_SUBDIR=$(echo "$SELENIUM_STANDALONE_VERSION" | cut -d"." -f-2)

  4. @ziadoz ziadoz revised this gist Jul 25, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install.sh
    Original file line number Diff line number Diff line change
    @@ -32,7 +32,7 @@ sudo dpkg -i --force-depends ~/google-chrome-stable_current_amd64.deb
    wget -N http://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip -P ~/
    unzip ~/chromedriver_linux64.zip -d ~/
    rm ~/chromedriver_linux64.zip
    sudo mv -f ~/chromedriver /usr/local/bin/
    sudo mv -f ~/chromedriver /usr/local/bin/chromedriver
    sudo chown root:root /usr/local/bin/chromedriver
    sudo chmod 0755 /usr/local/bin/chromedriver

  5. @ziadoz ziadoz revised this gist Jul 25, 2017. 1 changed file with 6 additions and 8 deletions.
    14 changes: 6 additions & 8 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -16,9 +16,7 @@ rm ~/google-chrome-stable_current_amd64.deb
    rm ~/selenium-server-standalone-*.jar
    rm ~/chromedriver_linux64.zip
    sudo rm /usr/local/bin/chromedriver
    sudo rm /usr/local/share/chromedriver
    sudo rm /usr/local/bin/selenium-server-standalone.jar
    sudo rm /usr/local/share/selenium-server-standalone.jar

    # Install dependencies.
    sudo apt-get update
    @@ -34,12 +32,12 @@ sudo dpkg -i --force-depends ~/google-chrome-stable_current_amd64.deb
    wget -N http://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip -P ~/
    unzip ~/chromedriver_linux64.zip -d ~/
    rm ~/chromedriver_linux64.zip
    sudo mv -f ~/chromedriver /usr/local/share/
    sudo chmod +x /usr/local/share/chromedriver
    sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
    sudo mv -f ~/chromedriver /usr/local/bin/
    sudo chown root:root /usr/local/bin/chromedriver
    sudo chmod 0755 /usr/local/bin/chromedriver

    # Install Selenium.
    wget -N http://selenium-release.storage.googleapis.com/$SELENIUM_SUBDIR/selenium-server-standalone-$SELENIUM_STANDALONE_VERSION.jar -P ~/
    sudo mv -f ~/selenium-server-standalone-$SELENIUM_STANDALONE_VERSION.jar /usr/local/share/selenium-server-standalone.jar
    sudo chmod +x /usr/local/share/selenium-server-standalone.jar
    sudo ln -s /usr/local/share/selenium-server-standalone.jar /usr/local/bin/selenium-server-standalone.jar
    sudo mv -f ~/selenium-server-standalone-$SELENIUM_STANDALONE_VERSION.jar /usr/local/bin/selenium-server-standalone.jar
    sudo chown root:root /usr/local/bin/selenium-server-standalone.jar
    sudo chmod 0755 /usr/local/bin/selenium-server-standalone.jar
  6. @ziadoz ziadoz revised this gist Jul 25, 2017. 2 changed files with 8 additions and 9 deletions.
    13 changes: 6 additions & 7 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -13,13 +13,12 @@ SELENIUM_SUBDIR=$(echo "$SELENIUM_STANDALONE_VERSION" | cut -d"." -f-2)

    # Remove existing downloads and binaries so we can start from scratch.
    rm ~/google-chrome-stable_current_amd64.deb
    rm ~/selenium-server-standalone-$SELENIUM_STANDALONE_VERSION.jar
    rm ~/selenium-server-standalone-*.jar
    rm ~/chromedriver_linux64.zip

    sudo rm /usr/local/bin/chromedriver
    sudo rm /usr/local/share/chromedriver
    sudo rm /usr/local/bin/selenium-server-standalone-$SELENIUM_STANDALONE_VERSION.jar
    sudo rm /usr/local/share/selenium-server-standalone-$SELENIUM_STANDALONE_VERSION.jar
    sudo rm /usr/local/bin/selenium-server-standalone.jar
    sudo rm /usr/local/share/selenium-server-standalone.jar

    # Install dependencies.
    sudo apt-get update
    @@ -41,6 +40,6 @@ sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver

    # Install Selenium.
    wget -N http://selenium-release.storage.googleapis.com/$SELENIUM_SUBDIR/selenium-server-standalone-$SELENIUM_STANDALONE_VERSION.jar -P ~/
    sudo mv -f ~/selenium-server-standalone-$SELENIUM_STANDALONE_VERSION.jar /usr/local/share/
    sudo chmod +x /usr/local/share/selenium-server-standalone-$SELENIUM_STANDALONE_VERSION.jar
    sudo ln -s /usr/local/share/selenium-server-standalone-$SELENIUM_STANDALONE_VERSION.jar /usr/local/bin/selenium-server-standalone-$SELENIUM_STANDALONE_VERSION.jar
    sudo mv -f ~/selenium-server-standalone-$SELENIUM_STANDALONE_VERSION.jar /usr/local/share/selenium-server-standalone.jar
    sudo chmod +x /usr/local/share/selenium-server-standalone.jar
    sudo ln -s /usr/local/share/selenium-server-standalone.jar /usr/local/bin/selenium-server-standalone.jar
    4 changes: 2 additions & 2 deletions start-chrome.sh
    Original file line number Diff line number Diff line change
    @@ -2,11 +2,11 @@

    # Run Chrome via Selenium Server
    start-chrome() {
    xvfb-run java -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -jar /usr/local/bin/selenium-server-standalone-3.4.0.jar
    xvfb-run java -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -jar /usr/local/bin/selenium-server-standalone.jar
    }

    start-chrome-debug() {
    xvfb-run java -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -jar /usr/local/bin/selenium-server-standalone-3.4.0.jar -debug
    xvfb-run java -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -jar /usr/local/bin/selenium-server-standalone.jar -debug
    }

    # Run Chrome Headless
  7. @ziadoz ziadoz revised this gist Jul 25, 2017. 1 changed file with 10 additions and 3 deletions.
    13 changes: 10 additions & 3 deletions start-chrome.sh
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,18 @@
    #!/usr/bin/env bash

    # Run Chrome via Selenium Server
    alias start-chrome="xvfb-run java -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -jar /usr/local/bin/selenium-server-standalone-3.4.0.jar"
    alias start-chrome-debug="xvfb-run java -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -jar /usr/local/bin/selenium-server-standalone-3.4.0.jar -debug"
    start-chrome() {
    xvfb-run java -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -jar /usr/local/bin/selenium-server-standalone-3.4.0.jar
    }

    start-chrome-debug() {
    xvfb-run java -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -jar /usr/local/bin/selenium-server-standalone-3.4.0.jar -debug
    }

    # Run Chrome Headless
    alias start-chrome-headless="chromedriver --url-base=/wd/hub"
    start-chrome-headless() {
    chromedriver --url-base=/wd/hub
    }

    # Start
    start-chrome
  8. @ziadoz ziadoz revised this gist Jul 25, 2017. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -13,12 +13,13 @@ SELENIUM_SUBDIR=$(echo "$SELENIUM_STANDALONE_VERSION" | cut -d"." -f-2)

    # Remove existing downloads and binaries so we can start from scratch.
    rm ~/google-chrome-stable_current_amd64.deb
    rm ~/selenium-server-standalone-3.0.1.jar
    rm ~/selenium-server-standalone-$SELENIUM_STANDALONE_VERSION.jar
    rm ~/chromedriver_linux64.zip

    sudo rm /usr/local/bin/chromedriver
    sudo rm /usr/local/share/chromedriver
    sudo rm /usr/local/bin/selenium-server-standalone-3.0.1.jar
    sudo rm /usr/local/share/selenium-server-standalone-3.0.1.jar
    sudo rm /usr/local/bin/selenium-server-standalone-$SELENIUM_STANDALONE_VERSION.jar
    sudo rm /usr/local/share/selenium-server-standalone-$SELENIUM_STANDALONE_VERSION.jar

    # Install dependencies.
    sudo apt-get update
  9. @ziadoz ziadoz revised this gist Jul 25, 2017. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion start-chrome.sh
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,13 @@
    #!/usr/bin/env bash

    # Run Chrome via Selenium Server
    alias start-chrome="xvfb-run java -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -jar /usr/local/bin/selenium-server-standalone-3.4.0.jar -debug"
    alias start-chrome="xvfb-run java -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -jar /usr/local/bin/selenium-server-standalone-3.4.0.jar"
    alias start-chrome-debug="xvfb-run java -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -jar /usr/local/bin/selenium-server-standalone-3.4.0.jar -debug"

    # Run Chrome Headless
    alias start-chrome-headless="chromedriver --url-base=/wd/hub"

    # Start
    start-chrome
    # start-chrome-debug
    # start-chrome-headless
  10. @ziadoz ziadoz revised this gist Jul 25, 2017. No changes.
  11. @ziadoz ziadoz revised this gist Jul 25, 2017. 2 changed files with 4 additions and 2 deletions.
    2 changes: 1 addition & 1 deletion install.sh
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@
    # Versions
    CHROME_DRIVER_VERSION=2.31
    SELENIUM_STANDALONE_VERSION=3.4.0
    SELENIUM_SUBDIR=$(echo "$SELENIUM_STANDALONE_VERSION" |cut -d"." -f-2)
    SELENIUM_SUBDIR=$(echo "$SELENIUM_STANDALONE_VERSION" | cut -d"." -f-2)

    # Remove existing downloads and binaries so we can start from scratch.
    rm ~/google-chrome-stable_current_amd64.deb
    4 changes: 3 additions & 1 deletion run.sh → start-chrome.sh
    Original file line number Diff line number Diff line change
    @@ -6,4 +6,6 @@ alias start-chrome="xvfb-run java -Dwebdriver.chrome.driver=/usr/local/bin/chrom
    # Run Chrome Headless
    alias start-chrome-headless="chromedriver --url-base=/wd/hub"

    start-chrome
    # Start
    start-chrome
    # start-chrome-headless
  12. @ziadoz ziadoz revised this gist Jul 25, 2017. 1 changed file with 10 additions and 5 deletions.
    15 changes: 10 additions & 5 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -6,6 +6,11 @@
    # http://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
    # http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04

    # Versions
    CHROME_DRIVER_VERSION=2.31
    SELENIUM_STANDALONE_VERSION=3.4.0
    SELENIUM_SUBDIR=$(echo "$SELENIUM_STANDALONE_VERSION" |cut -d"." -f-2)

    # Remove existing downloads and binaries so we can start from scratch.
    rm ~/google-chrome-stable_current_amd64.deb
    rm ~/selenium-server-standalone-3.0.1.jar
    @@ -26,15 +31,15 @@ sudo apt-get -f install -y
    sudo dpkg -i --force-depends ~/google-chrome-stable_current_amd64.deb

    # Install ChromeDriver.
    wget -N http://chromedriver.storage.googleapis.com/2.31/chromedriver_linux64.zip -P ~/
    wget -N http://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip -P ~/
    unzip ~/chromedriver_linux64.zip -d ~/
    rm ~/chromedriver_linux64.zip
    sudo mv -f ~/chromedriver /usr/local/share/
    sudo chmod +x /usr/local/share/chromedriver
    sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver

    # Install Selenium.
    wget -N http://selenium-release.storage.googleapis.com/3.4/selenium-server-standalone-3.4.0.jar -P ~/
    sudo mv -f ~/selenium-server-standalone-3.4.0.jar /usr/local/share/
    sudo chmod +x /usr/local/share/selenium-server-standalone-3.4.0.jar
    sudo ln -s /usr/local/share/selenium-server-standalone-3.4.0.jar /usr/local/bin/selenium-server-standalone-3.4.0.jar
    wget -N http://selenium-release.storage.googleapis.com/$SELENIUM_SUBDIR/selenium-server-standalone-$SELENIUM_STANDALONE_VERSION.jar -P ~/
    sudo mv -f ~/selenium-server-standalone-$SELENIUM_STANDALONE_VERSION.jar /usr/local/share/
    sudo chmod +x /usr/local/share/selenium-server-standalone-$SELENIUM_STANDALONE_VERSION.jar
    sudo ln -s /usr/local/share/selenium-server-standalone-$SELENIUM_STANDALONE_VERSION.jar /usr/local/bin/selenium-server-standalone-$SELENIUM_STANDALONE_VERSION.jar
  13. @ziadoz ziadoz revised this gist Jul 25, 2017. 1 changed file with 6 additions and 2 deletions.
    8 changes: 6 additions & 2 deletions run.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,9 @@
    #!/usr/bin/env bash

    # Run Selenium Server
    # Run Chrome via Selenium Server
    alias start-chrome="xvfb-run java -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -jar /usr/local/bin/selenium-server-standalone-3.4.0.jar -debug"
    alias start-chrome-headless="chromedriver --url-base=/wd/hub"

    # Run Chrome Headless
    alias start-chrome-headless="chromedriver --url-base=/wd/hub"

    start-chrome
  14. @ziadoz ziadoz revised this gist Jul 25, 2017. 2 changed files with 8 additions and 6 deletions.
    10 changes: 5 additions & 5 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -26,15 +26,15 @@ sudo apt-get -f install -y
    sudo dpkg -i --force-depends ~/google-chrome-stable_current_amd64.deb

    # Install ChromeDriver.
    wget -N http://chromedriver.storage.googleapis.com/2.27/chromedriver_linux64.zip -P ~/
    wget -N http://chromedriver.storage.googleapis.com/2.31/chromedriver_linux64.zip -P ~/
    unzip ~/chromedriver_linux64.zip -d ~/
    rm ~/chromedriver_linux64.zip
    sudo mv -f ~/chromedriver /usr/local/share/
    sudo chmod +x /usr/local/share/chromedriver
    sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver

    # Install Selenium.
    wget -N http://selenium-release.storage.googleapis.com/3.0/selenium-server-standalone-3.0.1.jar -P ~/
    sudo mv -f ~/selenium-server-standalone-3.0.1.jar /usr/local/share/
    sudo chmod +x /usr/local/share/selenium-server-standalone-3.0.1.jar
    sudo ln -s /usr/local/share/selenium-server-standalone-3.0.1.jar /usr/local/bin/selenium-server-standalone-3.0.1.jar
    wget -N http://selenium-release.storage.googleapis.com/3.4/selenium-server-standalone-3.4.0.jar -P ~/
    sudo mv -f ~/selenium-server-standalone-3.4.0.jar /usr/local/share/
    sudo chmod +x /usr/local/share/selenium-server-standalone-3.4.0.jar
    sudo ln -s /usr/local/share/selenium-server-standalone-3.4.0.jar /usr/local/bin/selenium-server-standalone-3.4.0.jar
    4 changes: 3 additions & 1 deletion run.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    #!/usr/bin/env bash

    # Run Selenium Server
    xvfb-run java -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -jar /usr/local/bin/selenium-server-standalone-3.0.1.jar -debug
    alias start-chrome="xvfb-run java -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -jar /usr/local/bin/selenium-server-standalone-3.4.0.jar -debug"
    alias start-chrome-headless="chromedriver --url-base=/wd/hub"
  15. @ziadoz ziadoz revised this gist Mar 2, 2017. 1 changed file with 17 additions and 6 deletions.
    23 changes: 17 additions & 6 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -6,24 +6,35 @@
    # http://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
    # http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04

    # Remove existing downloads and binaries so we can start from scratch.
    rm ~/google-chrome-stable_current_amd64.deb
    rm ~/selenium-server-standalone-3.0.1.jar
    rm ~/chromedriver_linux64.zip
    sudo rm /usr/local/bin/chromedriver
    sudo rm /usr/local/share/chromedriver
    sudo rm /usr/local/bin/selenium-server-standalone-3.0.1.jar
    sudo rm /usr/local/share/selenium-server-standalone-3.0.1.jar

    # Install dependencies.
    sudo apt-get update
    sudo apt-get install -y openjdk-8-jre-headless xvfb libxi6 libgconf-2-4

    # Install Chrome.
    wget -N https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -P ~/
    sudo dpkg -i --force-depends ~/google-chrome-stable_current_amd64.deb
    sudo apt-get -f install -y
    sudo dpkg -i --force-depends ~/google-chrome-stable_current_amd64.deb

    sudo apt-get install -y libxi6 libgconf-2-4
    # Install ChromeDriver.
    wget -N http://chromedriver.storage.googleapis.com/2.27/chromedriver_linux64.zip -P ~/
    unzip ~/chromedriver_linux64.zip -d ~/
    rm ~/chromedriver_linux64.zip
    sudo mv -f ~/chromedriver /usr/local/share/
    sudo chmod +x /usr/local/share/chromedriver
    sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver

    sudo apt-get install openjdk-8-jre-headless xvfb -y
    # Install Selenium.
    wget -N http://selenium-release.storage.googleapis.com/3.0/selenium-server-standalone-3.0.1.jar -P ~/
    sudo mv -f ~/selenium-server-standalone-3.0.1.jar /usr/local/share/
    sudo chmod +x /usr/local/share/selenium-server-standalone-3.0.1.jar
    sudo ln -s /usr/local/share/selenium-server-standalone-3.0.1.jar /usr/local/bin/selenium-server-standalone-3.0.1.jar

    # Run Selenium Server
    xvfb-run java -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -jar /usr/local/bin/selenium-server-standalone-3.0.1.jar -debug
    sudo ln -s /usr/local/share/selenium-server-standalone-3.0.1.jar /usr/local/bin/selenium-server-standalone-3.0.1.jar
  16. @ziadoz ziadoz revised this gist Jan 18, 2017. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions run.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    #!/usr/bin/env bash
    # Run Selenium Server
    xvfb-run java -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -jar /usr/local/bin/selenium-server-standalone-3.0.1.jar -debug
  17. @ziadoz ziadoz revised this gist Jan 18, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -25,4 +25,5 @@ sudo mv -f ~/selenium-server-standalone-3.0.1.jar /usr/local/share/
    sudo chmod +x /usr/local/share/selenium-server-standalone-3.0.1.jar
    sudo ln -s /usr/local/share/selenium-server-standalone-3.0.1.jar /usr/local/bin/selenium-server-standalone-3.0.1.jar

    # Run Selenium Server
    xvfb-run java -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -jar /usr/local/bin/selenium-server-standalone-3.0.1.jar -debug
  18. @ziadoz ziadoz created this gist Jan 18, 2017.
    28 changes: 28 additions & 0 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    #!/usr/bin/env bash
    # https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
    # https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c
    # http://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver
    # http://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception
    # http://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
    # http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04

    wget -N https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -P ~/
    sudo dpkg -i --force-depends ~/google-chrome-stable_current_amd64.deb
    sudo apt-get -f install -y
    sudo dpkg -i --force-depends ~/google-chrome-stable_current_amd64.deb

    sudo apt-get install -y libxi6 libgconf-2-4
    wget -N http://chromedriver.storage.googleapis.com/2.27/chromedriver_linux64.zip -P ~/
    unzip ~/chromedriver_linux64.zip -d ~/
    rm ~/chromedriver_linux64.zip
    sudo mv -f ~/chromedriver /usr/local/share/
    sudo chmod +x /usr/local/share/chromedriver
    sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver

    sudo apt-get install openjdk-8-jre-headless xvfb -y
    wget -N http://selenium-release.storage.googleapis.com/3.0/selenium-server-standalone-3.0.1.jar -P ~/
    sudo mv -f ~/selenium-server-standalone-3.0.1.jar /usr/local/share/
    sudo chmod +x /usr/local/share/selenium-server-standalone-3.0.1.jar
    sudo ln -s /usr/local/share/selenium-server-standalone-3.0.1.jar /usr/local/bin/selenium-server-standalone-3.0.1.jar

    xvfb-run java -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -jar /usr/local/bin/selenium-server-standalone-3.0.1.jar -debug