capybara fix deprecations