Skip to content

Instantly share code, notes, and snippets.

@akkunchoi
Created February 2, 2012 15:34
Show Gist options
  • Save akkunchoi/1724017 to your computer and use it in GitHub Desktop.
Save akkunchoi/1724017 to your computer and use it in GitHub Desktop.
watir example
require 'rubygems'
require 'watir-webdriver'
browser = Watir::Browser.new
browser.goto 'http://bit.ly/watir-example'
browser.text_field(:name => 'entry.0.single').set 'Watir'
browser.button(:name => 'submit').click
puts browser.title == 'Thanks!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment