Finally got capybara + code to work.