-
Open a browser
# start an instance of firefox with selenium-webdriver driver = Selenium::WebDriver.for :firefox # :chrome -> chrome # :ie -> iexplore
- Go to a specified URL
| contract SomeContrac { | |
| unit someVar; | |
| function getMyVar() constant return (string){ | |
| if(someVar> 2){ | |
| return("greater bro", someVar); | |
| }else if (somevar == 2) { | |
| return ("is exactly two", somevar); | |
| }else { | |
| return("is smaller two" somevar); |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="description" content="CE 9053 - One"> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <h1>Hello World</h1> |
| #!/bin/sh | |
| # check for where the latest version of IDEA is installed | |
| IDEA=`ls -1d /Applications/IntelliJ\ * | tail -n1` | |
| wd=`pwd` | |
| # were we given a directory? | |
| if [ -d "$1" ]; then | |
| # echo "checking for things in the working dir given" | |
| wd=`ls -1d "$1" | head -n1` |
| # code goes in ~/.bash_profile | |
| # tested on OS X | |
| export APPIUM_HOME="$HOME/Desktop/appium" | |
| export TEST_HOME="$HOME/path/to/tests" | |
| export APPIUM_AVD="t18" | |
| function three { | |
| # does node exist? | |
| [[ $(ps axo pid,command | grep "[0-9]\+ node" | wc -l) -gt 0 ]] && \ |