Sha256: cd88a30a4ff84f7890bbcd2adb79cfd65bb4dd5c6c4ccf6533f8a42797935891

Contents?: true

Size: 707 Bytes

Versions: 31

Compression:

Stored size: 707 Bytes

Contents

# 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('linkFrame').link(:text, 'test1').click
    assert(browser.frame('linkFrame').text.include?('Links2-Pass'))
  end
  
  def test_click_no_wait_in_a_frame
    browser.frame('linkFrame').link(:text, 'test1').click_no_wait
    Wait.until(10){browser.frame('linkFrame').text.include?('Links2-Pass')}
    assert(browser.frame('linkFrame').text.include?('Links2-Pass'))
  end  
  
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
watir-1.9.0.rc2 unittests/windows/frame_links_test.rb
watir-1.9.0.rc1 unittests/windows/frame_links_test.rb
watir-1.8.1 unittests/windows/frame_links_test.rb
watir-1.8.1.rc1 unittests/windows/frame_links_test.rb
watir-1.8.0 unittests/windows/frame_links_test.rb
watir-1.8.0.rc1 unittests/windows/frame_links_test.rb
watir-1.7.1 unittests/windows/frame_links_test.rb
watir-1.7.0 unittests/windows/frame_links_test.rb
watir-1.7.0.rc1 unittests/windows/frame_links_test.rb
watir-1.6.7 unittests/windows/frame_links_test.rb
watir-1.6.7.rc1 unittests/windows/frame_links_test.rb