unittests/frame_test.rb in watir-1.8.1 vs unittests/frame_test.rb in watir-1.9.0.rc1

- old
+ new

@@ -166,11 +166,13 @@ def test_frame_click_no_wait frame = browser.frame("buttonFrame") assert !frame.text.include?("PASS") frame.button(:id => "b2").click_no_wait - assert frame.text.include?("PASS") + assert_nothing_raised { + Watir::Wait.until {frame.text.include?("PASS")} + } end end class TC_Frame_multiple_attributes < Test::Unit::TestCase def setup @@ -191,6 +193,20 @@ frames = browser.frames assert_equal(3, frames.length) assert_equal('first_frame', frames[1].id) assert_equal('pass.html', frames[3].src) end +end + +class TC_iframe_access < Test::Unit::TestCase + def setup + goto_page "iframe.html" + end + + def test_frame_without_access_should_still_show_properties + frame = browser.frame(:name, 'iframe') + assert_nothing_raised {frame.src} + assert_equal('http://www.google.com', frame.src) + assert_raises(FrameAccessDeniedException) {frame.button(:index, 1).click} + end + end \ No newline at end of file