Get Advice Icon

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

Capybara
Capybara

190
123
+ 1
11
Selenium
Selenium

5.3K
3.9K
+ 1
460
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.

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.
Get Advice Icon

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

Why do developers choose Capybara?
Why do developers choose Selenium?

Sign up to add, upvote and see more prosMake informed product decisions

    Be the first to leave a con
    What companies use Capybara?
    What companies use Selenium?

    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.
    JUnit
    JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks.
    PHPUnit
    PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks.
    See all alternatives
    Decisions about Capybara and Selenium
    Benjamin Poon
    Benjamin Poon
    QA Manager - Engineering at HBC Digital ยท | 8 upvotes ยท 215.8K views
    Nightwatchjs
    Nightwatchjs
    Selenium
    Selenium
    JavaScript
    JavaScript
    Cucumber
    Cucumber
    GitHub
    GitHub
    GoCD
    GoCD
    Docker
    Docker
    ExpressJS
    ExpressJS
    React
    React
    PostgreSQL
    PostgreSQL

    For our digital QA organization to support a complex hybrid monolith/microservice architecture, our team took on the lofty goal of building out a commonized UI test automation framework. One of the primary requisites included a technical minimalist threshold such that an engineer or analyst with fundamental knowledge of JavaScript could automate their tests with greater ease. Just to list a few: - Nightwatchjs - Selenium - Cucumber - GitHub - Go.CD - Docker - ExpressJS - React - PostgreSQL

    With this structure, we're able to combine the automation efforts of each team member into a centralized repository while also providing new relevant metrics to business owners.

    See more
    Kevin Roulleau
    Kevin Roulleau
    QA Engineer Freelance at happn ยท | 5 upvotes ยท 62.7K views
    athappnhappn
    WebdriverIO
    WebdriverIO
    Appium
    Appium
    Selenium
    Selenium

    I chose WebdriverIO and Appium to implement a E2E tests solution on a native mobile app. WebdriverIO goes well beyond just implementing the Selenium / Appium protocol and allows to run tests in parallel out of the box. Appium has the big advantage of supporting iOS and Android platforms, so the test codebase and tools are exactly the same, which greatly reduces the learning curve and implementation time.

    See more
    Interest over time
    Reviews of Capybara and Selenium
    Review ofSeleniumSelenium

    we at www.cloudqa.io use selenium hub and node architecture to execute our test cases its a very powerful tool to automate web applications.

    How developers use Capybara and Selenium
    Avatar of Kang Hyeon Ku
    Kang Hyeon Ku uses SeleniumSelenium

    ๊ฐ€์žฅ ๊ฐ•๋ ฅํ•œ ์›น UI / UX ํ…Œ์ŠคํŠธ ํˆด ์ด์ง€๋งŒ, ๋ฌธ์ œ๋„ ๋งŽ๋‹ค. iframe ์•ˆ์— ์žˆ๋Š” ๊ฑด ์ž˜ select ๊ฐ€ ์•ˆ๋˜๊ธฐ๋„ ํ•˜๊ณ , ํ™”๋ฉด์ด ์ž‘์•„ ์ปดํฌ๋„ŒํŠธ๊ฐ€ ํ™”๋ฉด์— ๋ณด์ด์ง€ ์•Š์œผ๋ฉด ๋˜ select ํ•  ์ˆ˜ ์—†๋‹ค. ํ•˜์ง€๋งŒ ๋ธŒ๋ผ์šฐ์ €๋ฅผ ์žˆ๋Š” ๊ทธ๋Œ€๋กœ ์ œ์–ด ํ•  ์ˆ˜ ์žˆ๋‹ค๋Š” ๊ฒŒ ๊ฐ€์žฅ ํฐ ๋งค๋ ฅ์ด๋‹ค.

    ps. selenide ์™€ ๊ฐ™์ด ์“ฐ๋ฉด ์ฝ”๋“œ๊ฐ€ ๋งŽ์ด ๊ฐœ์„ ๋œ๋‹ค.

    Avatar of samdfonseca
    samdfonseca uses SeleniumSelenium

    Maintaining and expanding automated regression tests is one of my primary responsibilities at CrowdTwist. We use Selenium to test the front-end parts of our platform.

    Avatar of Ralic Lo
    Ralic Lo uses SeleniumSelenium

    Used Selenium web-driver for automated QA testing in continuous integration and continuous deployment.

    Avatar of Owen Miller
    Owen Miller uses SeleniumSelenium
    • Navigating our site for tests
    • Navigating other sites that discriminate against non-human visitors
    Avatar of Ataccama
    Ataccama uses SeleniumSelenium

    Selenium is a great way to automatically test if a build is sane and can be deployed.

    How much does Capybara cost?
    How much does Selenium cost?
    Pricing unavailable
    Pricing unavailable