title: How to open a browser in Capybara and Selenium
body: <p>I'm very new to Capybara and have also never used Selenium before. I'm doing a ruby on rails project on MacOSX and for whatever reason, a browser window never opens when I run my test. 
  My stack is: Capybara, Selenium, Rspec, Ruby on Rails.
  My test is as follows:</p>
  
  <pre><code>describe 'Downloads', js: true do
  
  context ' compress zip and download file' do
    before do
      Capybara.current_driver = :selenium
      session = Capybara::Session.new(:selenium)
      session.visit '/users/sign_in'
      find('#tab_signin').click
      within("#new_user") do
        fill_in 'user_login', :with =&gt; 'admin@local.host'
        fill_in 'user_password', :with =&gt; 'password'
      end
      click_button 'Sign in'
  end
  
  it 'downloads the project and navigates to downloads page' do
    visit 'some/path'
    within '.create-download' do
      find(:select).find("option[value='zip']").select_option
    end
    sleep 3
    page.should have_css('#download-modal.in')
  end
  </code></pre>
  
  <p>end
  end</p>
  
  <p>I've also tried to change stuff in my features/support/env.rb to be this:</p>
  
  <pre><code>Capybara.javascript_driver = :selenium
  Capybara.register_driver :selenium do |app|
    profile = Selenium::WebDriver::Firefox::Profile.new
    Capybara::Selenium::Driver.new(app, :browser =&gt; :firefox, :profile =&gt; profile)
  end
  </code></pre>
  
  <p><strong>Update</strong></p>
  
  <p>Not only is the browser not opening, but the test is failing with the following output:</p>
  
  <pre><code>Failure/Error: visit '/users/sign_in'
   ArgumentError:
     unknown option: {:resynchronize=&gt;true}
  </code></pre>