# brynary/webrat

Webrat - Ruby Acceptance Testing for Web applications

Repository: https://github.com/brynary/webrat
Canonical: https://ross.abutalabs.com/products/webrat
Homepage: http://rdoc.info/github/brynary/webrat/master/frames
Language: Ruby
License: MIT
License Family: permissive
Last push: 2016-06-28T03:27:40+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 6758, "days_push": 3718, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_readme
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1526, forks 270 (observed 2026-08-28T04:04:58.416444+00:00)

## What it is
Webrat is a Ruby library for writing expressive acceptance tests for web applications using a browser simulator instead of a real browser. It provides a high-level API (visit, click_link, fill_in) that works with Rails, Merb, and Sinatra, and integrates with RSpec, Cucumber, Test::Unit, and Shoulda.

## Use cases
- write acceptance tests for a Rails app without Selenium
- simulate user interactions like filling forms and clicking buttons in tests
- verify rendered HTML with CSS or XPath matchers
- share the same test API between simulator and Selenium runs
- test Sinatra applications with Cucumber steps

## When to choose
- maintaining a legacy Ruby/Rails codebase that already uses Webrat
- testing simple server-rendered pages without JavaScript

## When to avoid
- starting a new Ruby project - use Capybara instead
- testing JavaScript-heavy or AJAX-heavy applications
- needing an actively maintained or supported tool

## Facets
- artifact type: library
- maturity: abandoned
- function: testing, e2e-testing, http-client
- domain: testing, web-development, developer-tools
- platform: ruby
- tags: acceptance-testing, browser-simulator, rails, sinatra, cucumber, rspec, html-matching, web-server

## Member repositories
- brynary/webrat (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:58.416444+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:31:36.247016+00:00, confidence not recorded.
  - homepage: http://rdoc.info/github/brynary/webrat/master/frames (fetched 2026-08-29T11:34:08.133213+00:00, sha 184867fc8589)
- Data as of 2026-08-30T08:39:29.467469+00:00.
