Skip to content

Instantly share code, notes, and snippets.

@curtismcmullan
Last active May 2, 2023 22:56
Show Gist options
  • Select an option

  • Save curtismcmullan/7be1a8c1c841a9d8db2c to your computer and use it in GitHub Desktop.

Select an option

Save curtismcmullan/7be1a8c1c841a9d8db2c to your computer and use it in GitHub Desktop.

Revisions

  1. curtismcmullan revised this gist Dec 4, 2014. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions setup_selenium.sh
    Original file line number Diff line number Diff line change
    @@ -18,19 +18,19 @@ cd ~/selenium
    #
    echo "\r\nInstalling Selenium and headless Java runtime ...\r\n"
    sudo wget http://selenium-release.storage.googleapis.com/2.44/selenium-server-standalone-2.44.0.jar
    sudo apt-get install openjdk-7-jre-headless
    sudo apt-get install openjdk-7-jre-headless -y


    # Install Firefox
    #
    echo "\r\nInstalling Firefox ...\r\n"
    sudo apt-get install firefox
    sudo apt-get install firefox -y


    # Install headless GUI for firefox. 'Xvfb is a display server that performs graphical operations in memory'
    #
    echo "\r\nInstalling XVFB (headless GUI for Firefox) ...\r\n"
    sudo apt-get install xvfb
    sudo apt-get install xvfb -y


    # Finally, starting up Selenium server
  2. curtismcmullan revised this gist Dec 2, 2014. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions setup_selenium.sh
    Original file line number Diff line number Diff line change
    @@ -10,8 +10,8 @@ sudo apt-get update
    # Create folder to place selenium in
    #
    echo "\r\nCreating folder to place selenium in ...\r\n"
    sudo mkdir /var/selenium
    cd /var/selenium
    sudo mkdir ~/selenium
    cd ~/selenium


    # Get Selenium and install headless Java runtime
    @@ -36,4 +36,4 @@ sudo apt-get install xvfb
    # Finally, starting up Selenium server
    #
    echo "\r\nStarting up Selenium server ...\r\n"
    DISPLAY=:1 xvfb-run java -jar /var/selenium/selenium-server-standalone-2.43.1.jar
    DISPLAY=:1 xvfb-run java -jar ~/selenium/selenium-server-standalone-2.44.0.jar
  3. curtismcmullan revised this gist Dec 2, 2014. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions setup_selenium.sh
    Original file line number Diff line number Diff line change
    @@ -18,19 +18,19 @@ cd /var/selenium
    #
    echo "\r\nInstalling Selenium and headless Java runtime ...\r\n"
    sudo wget http://selenium-release.storage.googleapis.com/2.44/selenium-server-standalone-2.44.0.jar
    yes | sudo apt-get install openjdk-7-jre-headless
    sudo apt-get install openjdk-7-jre-headless


    # Install Firefox
    #
    echo "\r\nInstalling Firefox ...\r\n"
    yes | sudo apt-get install firefox
    sudo apt-get install firefox


    # Install headless GUI for firefox. 'Xvfb is a display server that performs graphical operations in memory'
    #
    echo "\r\nInstalling XVFB (headless GUI for Firefox) ...\r\n"
    yes | sudo apt-get install xvfb
    sudo apt-get install xvfb


    # Finally, starting up Selenium server
  4. curtismcmullan revised this gist Dec 2, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup_selenium.sh
    Original file line number Diff line number Diff line change
    @@ -17,7 +17,7 @@ cd /var/selenium
    # Get Selenium and install headless Java runtime
    #
    echo "\r\nInstalling Selenium and headless Java runtime ...\r\n"
    sudo wget http://selenium-release.storage.googleapis.com/2.40/selenium-server-standalone-2.43.1.jar
    sudo wget http://selenium-release.storage.googleapis.com/2.44/selenium-server-standalone-2.44.0.jar
    yes | sudo apt-get install openjdk-7-jre-headless


  5. curtismcmullan created this gist Dec 2, 2014.
    39 changes: 39 additions & 0 deletions setup_selenium.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,39 @@
    #!/bin/bash

    # Following the guide found at this page
    # http://programmingarehard.com/2014/03/17/behat-and-selenium-in-vagrant.html

    echo "\r\nUpdating system ...\r\n"
    sudo apt-get update


    # Create folder to place selenium in
    #
    echo "\r\nCreating folder to place selenium in ...\r\n"
    sudo mkdir /var/selenium
    cd /var/selenium


    # Get Selenium and install headless Java runtime
    #
    echo "\r\nInstalling Selenium and headless Java runtime ...\r\n"
    sudo wget http://selenium-release.storage.googleapis.com/2.40/selenium-server-standalone-2.43.1.jar
    yes | sudo apt-get install openjdk-7-jre-headless


    # Install Firefox
    #
    echo "\r\nInstalling Firefox ...\r\n"
    yes | sudo apt-get install firefox


    # Install headless GUI for firefox. 'Xvfb is a display server that performs graphical operations in memory'
    #
    echo "\r\nInstalling XVFB (headless GUI for Firefox) ...\r\n"
    yes | sudo apt-get install xvfb


    # Finally, starting up Selenium server
    #
    echo "\r\nStarting up Selenium server ...\r\n"
    DISPLAY=:1 xvfb-run java -jar /var/selenium/selenium-server-standalone-2.43.1.jar