Created
March 5, 2010 07:47
-
-
Save auxesis/322538 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'webrat' | |
Webrat.configure do |config| | |
config.mode = :mechanize | |
end | |
include Webrat::Matchers | |
include Webrat::Methods | |
visit "http://slug.org.au" | |
click_link "Contact SLUG" | |
fill_in "edit-search_block_form_keys", :with => "Ken Wilson" | |
response_body =~ /treasurer/i | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment