Skip to content

Instantly share code, notes, and snippets.

@caleywoods
Created September 14, 2011 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caleywoods/1216473 to your computer and use it in GitHub Desktop.
Save caleywoods/1216473 to your computer and use it in GitHub Desktop.
example watir test script
require 'firewatir'
require 'test/unit'
class DomainExceptionTest < Test::Unit::TestCase
TEST_SITE = "http://www.symantec.com/connect/"
def setup
@browser = Watir::Browser.new
@browser.goto(TEST_SITE)
end
def teardown
@browser.close
end
def test_gets_page
assert_equal("All of Connect| Symantec Connect Community", @browser.title)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment