fixes capybara test with webkit