finished capybara conversion