- 
      
- 
        Save preetchaahal/aabab33e87d7f3b050ad1d05b5d7fe8f to your computer and use it in GitHub Desktop. 
Revisions
- 
        ziadoz revised this gist Nov 19, 2017 . 2 changed files with 6 additions and 6 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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. 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. 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 ~/ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,6 +15,6 @@ start-chrome-headless() { } # Start # start-chrome # start-chrome-debug # start-chrome-headless 
- 
        ziadoz revised this gist Jul 28, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 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 ~/ 
- 
        ziadoz revised this gist Jul 26, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE` SELENIUM_STANDALONE_VERSION=3.4.0 SELENIUM_SUBDIR=$(echo "$SELENIUM_STANDALONE_VERSION" | cut -d"." -f-2) 
- 
        ziadoz revised this gist Jul 25, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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/chromedriver sudo chown root:root /usr/local/bin/chromedriver sudo chmod 0755 /usr/local/bin/chromedriver 
- 
        ziadoz revised this gist Jul 25, 2017 . 1 changed file with 6 additions and 8 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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/bin/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/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/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 
- 
        ziadoz revised this gist Jul 25, 2017 . 2 changed files with 8 additions and 9 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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-*.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 @@ -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/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 This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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.jar } start-chrome-debug() { xvfb-run java -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -jar /usr/local/bin/selenium-server-standalone.jar -debug } # Run Chrome Headless 
- 
        ziadoz revised this gist Jul 25, 2017 . 1 changed file with 10 additions and 3 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,18 @@ #!/usr/bin/env bash # 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 } 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 start-chrome-headless() { chromedriver --url-base=/wd/hub } # Start start-chrome 
- 
        ziadoz revised this gist Jul 25, 2017 . 1 changed file with 4 additions and 3 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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-$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-$SELENIUM_STANDALONE_VERSION.jar sudo rm /usr/local/share/selenium-server-standalone-$SELENIUM_STANDALONE_VERSION.jar # Install dependencies. sudo apt-get update 
- 
        ziadoz revised this gist Jul 25, 2017 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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" 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 
- 
        ziadoz revised this gist Jul 25, 2017 . No changes.There are no files selected for viewing
- 
        ziadoz revised this gist Jul 25, 2017 . 2 changed files with 4 additions and 2 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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) # Remove existing downloads and binaries so we can start from scratch. rm ~/google-chrome-stable_current_amd64.deb This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 start-chrome # start-chrome-headless 
- 
        ziadoz revised this gist Jul 25, 2017 . 1 changed file with 10 additions and 5 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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/$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/$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 
- 
        ziadoz revised this gist Jul 25, 2017 . 1 changed file with 6 additions and 2 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,9 @@ #!/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" # Run Chrome Headless alias start-chrome-headless="chromedriver --url-base=/wd/hub" start-chrome 
- 
        ziadoz revised this gist Jul 25, 2017 . 2 changed files with 8 additions and 6 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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.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.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 This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ #!/usr/bin/env bash # Run 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" 
- 
        ziadoz revised this gist Mar 2, 2017 . 1 changed file with 17 additions and 6 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 # 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 # 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 
- 
        ziadoz revised this gist Jan 18, 2017 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 
- 
        ziadoz revised this gist Jan 18, 2017 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 
- 
        ziadoz created this gist Jan 18, 2017 .There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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