Created
September 14, 2011 12:54
-
-
Save caleywoods/1216473 to your computer and use it in GitHub Desktop.
example watir test script
This file contains 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 '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