Add Capybara 2 compatibility