Capybara (software)
Capybara is a web-based test automation software that simulates scenarios for user stories and automates web application testing for behavior-driven software development.[src] It is written in the Ruby programming language.[src] Capybara can mimic actions of real users interacting with web-based applications.[src] It can receive pages, parse the HTML and submit forms.[src]
Capybara is a web-based test automation software that simulates scenarios for user stories and automates web application testing for behavior-driven software development.[src] It is written in the Ruby programming language.[src] Capybara can mimic actions of real users interacting with web-based applications.[src] It can receive pages, parse the HTML and submit forms.[src] describe 'UserRegistration' do it 'allows a user to register' do visit new_user_registration_path fill_in 'First name', with: 'New' fill_in 'Last name', with: 'User' fill_in 'Email', with: 'newuser@example.com' fill_in 'Password', with: 'userpassword' fill_in 'Password Confirmation', with: 'userpassword' click_button 'Register' page.should have_content 'Welcome' end end An example of a Capybara feature used with Cucumber: When /^I want to add/ do fill_in 'a', with: 100 fill_in 'b', with: 100 click_button 'Add' end ===Capybara with RSpec=== Some minute integration is required in order to use Capybara with RSpec describe 'go to home page' do it 'opens the home page' do visit (get_homepage) expect(page).to have_content('Welcome') end end ==See also== Acceptance testing Acceptance test-driven development Behavior-driven development Test automation HtmlUnit List of web testing tools Regression testing Given-When-Then[src]
9 sentences · 9 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Capybara (software)." encyclopegia.org, 2025, https://encyclopegia.org/wiki/capybara-software. Accessed 25 November 2026.
Chicago
"Capybara (software)." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/capybara-software.
APA
encyclopegia.org. (2025). Capybara (software). Retrieved November 25, 2026, from https://encyclopegia.org/wiki/capybara-software
Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON