Added wait time to capybara