Selenium

Selenium tests working on my computer. They probably fail on travis as you need to use the phantom webdriver, we'll work this out though.