# tests of click_no_wait for links in frames $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', '..') unless $SETUP_LOADED require 'unittests/setup' class TC_Frame_Links < Test::Unit::TestCase def setup goto_page "frame_links.html" end def test_click_in_a_frame browser.frame(:name, 'linkFrame').link(:text, 'test1').click assert(browser.frame(:name, 'linkFrame').text.include?('Links2-Pass')) end def test_click_no_wait_in_a_frame browser.frame(:name, 'linkFrame').link(:text, 'test1').click_no_wait Watir::Wait.until(10){browser.frame(:name, 'linkFrame').text.include?('Links2-Pass')} assert(browser.frame(:name, 'linkFrame').text.include?('Links2-Pass')) end end