Created
February 2, 2012 15:34
-
-
Save akkunchoi/1724017 to your computer and use it in GitHub Desktop.
watir example
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
| 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