Useful stuff for testing with Capybara.