Code from Dave Heaffner's bootcamp: http://davehaeffner.com/selenium-bootcamp/