CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sun, 31 Aug 2025 22:23:35 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100415032113
location: https://web.archive.org/web/20100415032113/https://github.com/garytaylor/webrat_selenium
server-timing: captures_list;dur=1.092317, exclusion.robots;dur=0.038289, exclusion.robots.policy;dur=0.016049, esindex;dur=0.018191, cdx.remote;dur=165.936016, LoadShardBlock;dur=320.698613, PetaboxLoader3.resolve;dur=125.900691, PetaboxLoader3.datanode;dur=89.498829
x-app-server: wwwb-app212
x-ts: 302
x-tr: 533
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app212; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sun, 31 Aug 2025 22:23:36 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Thu, 15 Apr 2010 03:21:12 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "1cafb9027f36865f8bd9559a086530c5"
x-archive-orig-x-runtime: 433ms
x-archive-orig-content-length: 31677
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Thu, 15 Apr 2010 03:21:13 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Thu, 15 Apr 2010 03:21:13 GMT", ; rel="memento"; datetime="Thu, 15 Apr 2010 03:21:13 GMT", ; rel="next memento"; datetime="Sun, 10 Jun 2018 23:56:34 GMT", ; rel="last memento"; datetime="Sun, 13 Dec 2020 20:40:29 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_15_20100415022124_crawl100_IndexOnly-c/52_15_20100415031945_crawl101.arc.gz
server-timing: captures_list;dur=0.674162, exclusion.robots;dur=0.022603, exclusion.robots.policy;dur=0.010690, esindex;dur=0.015076, cdx.remote;dur=40.035410, LoadShardBlock;dur=211.896757, PetaboxLoader3.datanode;dur=151.538076, PetaboxLoader3.resolve;dur=425.436167, load_resource;dur=412.276909
x-app-server: wwwb-app212
x-ts: 200
x-tr: 757
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
garytaylor's webrat_selenium at master - GitHub
garytaylor / webrat_selenium forked from brynary/webrat
- Source
- Commits
- Network (287)
- Wiki (1)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage

Gary Taylor (author)
Tue Apr 13 01:15:37 -0700 2010
README.rdoc
Webrat - Ruby Acceptance Testing for Web applications
- gitrdoc.com/brynary/webrat
- groups.google.com/group/webrat
- webrat.lighthouseapp.com/
- github.com/brynary/webrat
- #webrat on Freenode
Description
Webrat lets you quickly write expressive and robust acceptance tests for a Ruby web application.
Features
- Browser Simulator for expressive, high level acceptance testing without the performance hit and browser dependency of Selenium or Watir (See Webrat::Session)
- Use the same API for Browser Simulator and real Selenium tests using Webrat::Selenium when necessary (eg. for testing AJAX interactions)
- Supports multiple Ruby web frameworks: Rails, Merb and Sinatra
- Supports popular test frameworks: RSpec, Cucumber, Test::Unit and Shoulda
- Webrat::Matchers API for verifying rendered HTML using CSS, XPath, etc.
Example
class SignupTest < ActionController::IntegrationTest def test_trial_account_sign_up visit home_path click_link "Sign up" fill_in "Email", :with => "good@example.com" select "Free account" click_button "Register" end end
Behind the scenes, Webrat will ensure:
- If a link, form field or button is missing, the test will fail.
- If a URL is invalid, the test will fail.
- If a page load or form submission is unsuccessful, the test will fail.
Installing Nokogiri
Users of Debian Linux (e.g. Ubuntu) need to run:
sudo apt-get install libxslt1-dev libxml2-dev.
Otherwise the Nokogiri gem, which Webrat depends on, won’t install properly.
Install for Rails
To install the latest release as a gem:
sudo gem install webrat
To install the latest code as a plugin: (_Note:_ This may be less stable than using a released version)
script/plugin install git://github.com/brynary/webrat.git
In your test_helper.rb or env.rb (for Cucumber) add:
require "webrat" Webrat.configure do |config| config.mode = :rails end
Install with Merb
Merb 1.0 has built-in, seamless Webrat support. Just start using methods from Webrat::Session in your specs.
Authors
- Maintained by Bryan Helmkamp
- Original code written by Seth Fitzsimmons
- Initial development was sponsored by EastMedia
- Many other contributors. See attributions in History.txt
License
Copyright © 2007-2008 Bryan Helmkamp, Seth Fitzsimmons. See MIT-LICENSE.txt in this directory.