public
Description: Webrat - Ruby Acceptance Testing for Web applications
Homepage: http://www.brynary.com/uploads/webrat/rdoc/index.html
Clone URL: git://github.com/brynary/webrat.git
brynary (author)
Sun Jul 20 19:07:16 -0700 2008
commit  13a86880e54007cca18565ba16809f24af491572
tree    555d4ec20625326715658c0d6da12b3d3d340633
parent  01f87b5c3bff6815e17e5728164f82c8d7560a9a
webrat / mechanize_spike.rb
100644 10 lines (8 sloc) 0.213 kb
1
2
3
4
5
6
7
8
9
10
require "lib/webrat"
require "lib/webrat/mechanize"
 
include Webrat
 
sess = MechanizeSession.new
sess.visits "http://www.google.com/"
sess.fills_in "q", :with => "Webrat"
sess.clicks_button
sess.save_and_open_page