unittests/checkbox_xpath_test.rb in watir-1.5.4 vs unittests/checkbox_xpath_test.rb in watir-1.5.5

- old
+ new

@@ -1,15 +1,15 @@ # feature tests for Check Boxes -# revision: $Revision: 962 $ +# revision: $Revision: 1348 $ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') if $0 == __FILE__ require 'unittests/setup' class TC_CheckBox_XPath < Test::Unit::TestCase - include Watir + include Watir::Exception def setup - $ie.goto($htmlRoot + "checkboxes1.html") + goto_page "checkboxes1.html" end def test_checkbox_properties assert_raises(UnknownObjectException , "UnknownObjectException was supposed to be thrown" ) { $ie.checkbox(:xpath , "//input[@name='noName']/").id } assert_raises(UnknownObjectException , "UnknownObjectException was supposed to be thrown" ) { $ie.checkbox(:xpath , "//input[@name='noName']/").name }