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 characters
| # Open 2 terminals. | |
| # TERMINAL 1: | |
| $ cd /path/to/selenium | |
| $ ls | |
| selenium-server-standalone.jar | |
| $ java -jar selenium-server-standalone.jar -role hub | |
| # TERMINAL 2: | |
| $ cd /path/to/selenium |
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 characters
| Government is a greedy piglet that suckles on a taxpayers teet until they have sore chapped nipples. |
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 characters
| [remote "origin"] | |
| url = <repo> | |
| fetch = +refs/heads/*:refs/remotes/origin/* | |
| fetch = +refs/pull/*/head:refs/remotes/origin/pr/* |
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 characters
| import os | |
| from selenium import webdriver | |
| fp = webdriver.FirefoxProfile() | |
| fp.set_preference("extensions.blocklist.enabled",False) | |
| browser = webdriver.Firefox(firefox_profile=fp) |
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 characters
| import org.junit.Before; | |
| import org.junit.Test; | |
| import org.openqa.selenium.By; | |
| import org.openqa.selenium.WebElement; | |
| import org.openqa.selenium.chrome.ChromeDriver; | |
| /** | |
| * @author ddavison | |
| * @since Mar 18, 2015 | |
| */ |
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 characters
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "strconv" | |
| ) |
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 characters
| function cake-new() { | |
| if [[ $# -lt 1 ]]; then | |
| echo "usage: $0 <app-name>" | |
| else | |
| app_name="$1" | |
| cp -R "/Users/ddavison/workspace/cake-php-base" "/Users/ddavison/workspace/apache/$1" | |
| ln -s /Users/ddavison/workspace/apache/$1/app/Console/cake /Users/ddavison/workspace/apache/$1/cake | |
| chmod -R ugo+rw /Users/ddavison/workspace/apache/$1/app | |
| echo "./cake" >> .gitignore | |
| mv "/Users/ddavison/workspace/apache/$1/app/Config/database.php.default" "/Users/ddavison/workspace/apache/$1/app/Config/database.php" |
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 characters
| #!/bin/sh | |
| #### | |
| # Author: ddavison | |
| # Description: Download the Linux chromedriver into the current directory | |
| #### | |
| function downloadchrome { | |
| # latest=`curl http://chromedriver.storage.googleapis.com/LATEST_RELEASE` | |
| version="2.9" | |
| download_location="http://chromedriver.storage.googleapis.com/$version/chromedriver_linux32.zip" | |
| rm /tmp/chromedriver_linux32.zip |
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 characters
| #!/bin/sh | |
| #### | |
| # Author: ddavison | |
| # Description: Download the Linux chromedriver into the current directory | |
| #### | |
| function downloadchrome { | |
| latest=`curl http://chromedriver.storage.googleapis.com/LATEST_RELEASE` | |
| download_location="http://chromedriver.storage.googleapis.com/$latest/chromedriver_linux32.zip" | |
| wget -P /tmp $download_location | |
| unzip /tmp/chromedriver_linux32.zip -d . |
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 characters
| #!/bin/sh | |
| #### | |
| # Author: ddavison | |
| # Description: Download the Mac chromedriver into the current directory | |
| #### | |
| function downloadchrome { | |
| latest=`curl http://chromedriver.storage.googleapis.com/LATEST_RELEASE` | |
| download_location="http://chromedriver.storage.googleapis.com/$latest/chromedriver_mac32.zip" | |
| wget -P /tmp $download_location | |
| unzip /tmp/chromedriver_mac32.zip -d . |