Capybara is a Ruby library for acceptance testing of web applications. It simulates how a real user would interact with a site: visiting URLs, clicking links, filling in forms, following redirects, etc. It acts via “drivers” (such as Selenium, headless browser drivers, etc) to automate browser behavior. It works with Rack-based apps, integrates with Rails (or other Ruby web frameworks), and is widely used in test suites to do feature/integration testing.
Features
- Abstracts user actions (visit, click_link, fill_in etc) to simulate real browser interactions
- Supports multiple drivers (Selenium, headless browser, etc) to run tests in different environments
- Works with Rack‐based apps (Rails, Sinatra, others) to test internal request handling without needing a full HTTP server in some cases
- CSS/XPath selectors, matchers, assertions for page content, visibility, etc
- Support for testing with JavaScript (via drivers that support JS) including headless modes
- Provides DSL to write expressive acceptance tests integrated into test suite (e.g., RSpec, Minitest)
Categories
FrameworksLicense
MIT LicenseFollow Capybara
Other Useful Business Software
Gen AI apps are built with MongoDB Atlas
MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Capybara!