# Capybara

> Acceptance test framework for web applications

Source: https://talira.ai/catalog/capybara-s6z3hhxe
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Framework
- Categories: [developer tools / testing / browser](https://talira.ai/categories/developer-tools/testing/browser), [languages / ruby](https://talira.ai/categories/languages/ruby)
- Platforms: linux, macos, windows
- Licence: MIT
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- Plugins: yes
- Backed by: [Capybara](https://talira.ai/orgs/capybara.md)
- Creator: Jonas Nicklas and Thomas Walpole hold the copyright
- Funding: funded by donations[^1]

Capybara tests a web application by acting like a person using it: visit a page, fill in a field by its label, click a button, then assert what the page shows. The same DSL runs on different drivers, Rack::Test (fast, no browser, no JavaScript) and [Selenium](https://talira.ai/catalog/selenium-dran12kh.md) are built in, and gems add others. Its finders and matchers wait for content to appear, which handles pages that update with JavaScript. It works with [RSpec](https://talira.ai/catalog/rspec-87n8pes2.md), Minitest, Cucumber and Test::Unit, and Rails system tests are built on it.

## Links

- Website: https://teamcapybara.github.io/capybara/
- GitHub: https://github.com/teamcapybara/capybara
- Docs: https://rubydoc.info/github/teamcapybara/capybara/master

## Problems it solves

- test my Rails app the way a user clicks through it, in a real browser
- write a test that signs up, fills in a form and checks the confirmation page
- my browser tests are flaky because content loads with JavaScript after the page
- run the same end-to-end tests without a browser when they don't need JavaScript
- find buttons and fields by their visible label instead of CSS selectors
- switch my feature tests between Chrome and a headless driver without rewriting them
- integration tests for a Ruby web app that read like a user story
- test a modal, a new window or a file upload in a full-page test

## Features

- user-level DSL: visit, fill_in, click_on, select, attach_file
- Rack::Test and Selenium drivers built in
- third-party drivers from other gems
- matchers that wait for asynchronous content
- scoping, windows, modals and named sessions
- RSpec, Minitest, Cucumber and Test::Unit integration
- the base of Rails system tests

## Capabilities

- Takes plugins: plan not known

## Trust

Overall: 0.61 out of 1.
Signals: maintenance 0.46, adoption 0.80, momentum 0.51, community 1.00, backing 0.75, extensibility 0.20.

- last commit 49 days ago
- 2 commits in the last 90 days
- 10.2k GitHub stars
- 422 contributors
- has a company behind it
- created by Jonas Nicklas and Thomas Walpole hold the copyright
- funding: funded by donations
- has a plugin system

## Alternatives

- [Cypress](https://talira.ai/catalog/cypress-93d46axc.md): AI writes the code. Cypress proves it works.
- [Playwright](https://talira.ai/catalog/playwright-r7fvkefh.md): Fast and reliable end-to-end testing for modern web apps
- [Puppeteer](https://talira.ai/catalog/puppeteer-vbv4zakx.md): JavaScript API for Chrome and Firefox
- [BrowserStack](https://talira.ai/catalog/browserstack-9v5mkzzz.md): Everything you need for testing, with AI at every step
- [Selenium](https://talira.ai/catalog/selenium-dran12kh.md): Automate any browser, from any language.

## Sources

[^1]: https://github.com/teamcapybara/capybara (checked 20 Nov 2026)
