Refactor the tests to have less redundancy

I found that there was a lot of repetition with the way I was using Webdriver, so I've improved the tests to be more discoverable and more easily shared.