unittests/pagecontainstext_test.rb in watir-1.5.4 vs unittests/pagecontainstext_test.rb in watir-1.5.5
- old
+ new
@@ -1,16 +1,15 @@
# feature tests for IE::contains_text
-# revision: $Revision: 1100 $
+# revision: $Revision: 1348 $
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') if $0 == __FILE__
require 'unittests/setup'
class TC_contains_text < Test::Unit::TestCase
- include Watir
def setup
- $ie.goto($htmlRoot + "textsearch.html")
+ goto_page "textsearch.html"
end
def test_text_found
assert($ie.contains_text('slings and arrows of outrageous fortune'))
end
@@ -58,10 +57,10 @@
end
end
class TC_contains_text_in_frame < Test::Unit::TestCase
def setup
- $ie.goto($htmlRoot + "frame_links.html")
+ goto_page "frame_links.html"
end
def test_in_frame
assert $ie.frame('linkFrame').contains_text('The button is really a link')
end
end
\ No newline at end of file