Need advice about which tool to choose?Ask the StackShare community!

Capybara

723
191
+ 1
15
Selenium

15.2K
11.9K
+ 1
523
Add tool

Capybara vs Selenium: What are the differences?

Developers describe Capybara as "Acceptance test framework for web applications". Capybara helps you test web applications by simulating how a real user would interact with your app. It is agnostic about the driver running your tests and comes with Rack::Test and Selenium support built in. WebKit is supported through an external gem. On the other hand, Selenium is detailed as "Web Browser Automation". Selenium automates browsers. That's it! What you do with that power is entirely up to you. Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) also be automated as well.

Capybara can be classified as a tool in the "Testing Frameworks" category, while Selenium is grouped under "Browser Testing".

"Best acceptance test framework for Ruby on Rails apps" is the top reason why over 7 developers like Capybara, while over 149 developers mention "Automates browsers" as the leading cause for choosing Selenium.

Capybara and Selenium are both open source tools. It seems that Selenium with 14.7K GitHub stars and 4.92K forks on GitHub has more adoption than Capybara with 8.82K GitHub stars and 1.29K GitHub forks.

MIT, PedidosYa, and HubSpot are some of the popular companies that use Selenium, whereas Capybara is used by GrowthHackers, sQuidd.io, and Indiegogo. Selenium has a broader approval, being mentioned in 770 company stacks & 425 developers stacks; compared to Capybara, which is listed in 38 company stacks and 20 developer stacks.

Advice on Capybara and Selenium
Needs advice
on
JestJestSeleniumSelenium
and
WebdriverIOWebdriverIO
in

we are having one web application developed in Reacts.js. in the application, we have only 4 to 5 pages that we need to test. I am having experience in selenium with java. Please suggets which tool I should use. and why ............................ ............................ .............................

See more
Replies (1)
Prashanth Marappa
Senior Software Engineer at Mphasis · | 1 upvotes · 200.5K views
Recommends
on
SeleniumSelenium

with the help of selenium we can automate react js for functional testing

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Capybara
Pros of Selenium
  • 12
    Best acceptance test framework for Ruby on Rails apps
  • 2
    Synchronous with Rack::Test
  • 1
    Fast with Rack::Test
  • 173
    Automates browsers
  • 154
    Testing
  • 101
    Essential tool for running test automation
  • 24
    Record-Playback
  • 24
    Remote Control
  • 8
    Data crawling
  • 7
    Supports end to end testing
  • 6
    Functional testing
  • 6
    Easy set up
  • 4
    The Most flexible monitoring system
  • 3
    End to End Testing
  • 3
    Easy to integrate with build tools
  • 2
    Comparing the performance selenium is faster than jasm
  • 2
    Record and playback
  • 2
    Compatible with Python
  • 2
    Easy to scale
  • 2
    Integration Tests
  • 0
    Integrated into Selenium-Jupiter framework

Sign up to add or upvote prosMake informed product decisions

Cons of Capybara
Cons of Selenium
  • 1
    Hard to make reproducible tests when using with browser
  • 8
    Flaky tests
  • 4
    Slow as needs to make browser (even with no gui)
  • 1
    Update browser drivers

Sign up to add or upvote consMake informed product decisions

- No public GitHub repository available -

What is Capybara?

Capybara helps you test web applications by simulating how a real user would interact with your app. It is agnostic about the driver running your tests and comes with Rack::Test and Selenium support built in. WebKit is supported through an external gem.

What is Selenium?

Selenium automates browsers. That's it! What you do with that power is entirely up to you. Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) also be automated as well.

Need advice about which tool to choose?Ask the StackShare community!

What companies use Capybara?
What companies use Selenium?
See which teams inside your own company are using Capybara or Selenium.
Sign up for StackShare EnterpriseLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Capybara?
What tools integrate with Selenium?

Sign up to get full access to all the tool integrationsMake informed product decisions

What are some alternatives to Capybara and Selenium?
Wombat
Automate your store in no time: Wombat is an ecommerce integration platform that quickly connects your storefront with all your favorite 3rd party services. Comprehensive enough for large ecommerce stores and easy enough for small merchants
Cucumber
Cucumber is a tool that supports Behaviour-Driven Development (BDD) - a software development process that aims to enhance software quality and reduce maintenance costs.
Anaconda
A free and open-source distribution of the Python and R programming languages for scientific computing, that aims to simplify package management and deployment. Package versions are managed by the package management system conda.
Quokka
You send great emails but sometimes it gets lost in a user’s inbox. Quokka shows a retargeting message to those who ignored your message so that they will never miss an important update from you.
Cypress
Cypress is a front end automated testing application created for the modern web. Cypress is built on a new architecture and runs in the same run-loop as the application being tested. As a result Cypress provides better, faster, and more reliable testing for anything that runs in a browser. Cypress works on any front-end framework or website.
See all alternatives