title: capybara: save_and_open_page. Error - no display specified Couldn't find a suitable web browser
body: <p>In test file, capybara method <code>save_and_open_page</code> display error:<br>
  <strong>Error: no display specified
  Couldn't find a suitable web browser!
  Set the BROWSER environment variable to your desired browser.
  Warning: program returned non-zero exit code #1
  Opening "/home/ubuntu/workspace/tmp/capybara/capybara-201604201009291019595495.html" with Firefox Web Browser  (text/html)</strong></p>
  
  <pre><code>Error: no display specified
  /usr/bin/xdg-open: 461: /usr/bin/xdg-open: links2: not found
  /usr/bin/xdg-open: 461: /usr/bin/xdg-open: links: not found
  /usr/bin/xdg-open: 461: /usr/bin/xdg-open: lynx: not found
  /usr/bin/xdg-open: 461: /usr/bin/xdg-open: w3m: not found
  xdg-open: no method available for opening '/home/ubuntu/workspace/tmp/capybara/capybara-201604201009291019595495.html'
  </code></pre>
  
  <p><strong>gemfile</strong></p>
  
  <pre><code>group :development, :test do
    gem 'pry-rails'
    gem 'factory_girl_rails'
    gem 'rspec-rails'
    gem 'launchy'
  end
  
  group :development do
    gem 'better_errors'
    gem "letter_opener"
    gem 'byebug'
    gem 'pry-byebug'
  
    # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
    gem 'spring'
  
    gem 'annotate'
  end
  
  # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
  gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
  
  
  group :production do
    gem 'rack-cache', :require =&gt; 'rack/cache'
  end
  
  group :test do
    gem 'shoulda-matchers'
    gem 'capybara'
  
  end
  </code></pre>
  
  <p>How can I set browser chrome?</p>