Gem Version Code Climate Dependency Status


Dead-simple way to make Capybara and Selenium play together


CapybaraSelenium is on its way towards 1.0.0. Please refer to issues for details.


Add this line to your application’s Gemfile:

gem 'capybara-selenium'

And then execute:

$ bundle

Or install it yourself as:

$ gem install capybara-selenium


Supported application servers:

  • Modular sinatra apps (through

Supported selenium servers:

  • Remote selenium server

```ruby # features/support/continous_integration.rb APP_SERVER_HOST = ENV[‘CI_APP_SERVER_HOST’] || ‘localhost’ APP_SERVER_PORT = ENV[‘CI_APP_SERVER_PORT’] || 8080 SELENIUM_SERVER_URL = ENV[‘CI_SELENIUM_SERVER_URL’] || ‘’

CapybaraSelenium.configure(:rack, :remote) do |config| = APP_SERVER_HOST config.app_server.port = APP_SERVER_PORT config.app_server.config_ru_path = File.expand_path( File.join(FILE, ‘../web_app/’))

config.selenium_server.url = SELENIUM_SERVER_URL config.selenium_server.capabilities = { browser_name: browser_name } end ```


  1. Fork it ( )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request