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-3.0.0.rc2 unittests/windows/frame_links_test.rb
watir-3.0.0.rc1 unittests/windows/frame_links_test.rb
watir-2.0.4 unittests/windows/frame_links_test.rb
watir-2.0.3 unittests/windows/frame_links_test.rb
watir-2.0.2 unittests/windows/frame_links_test.rb
watir-2.0.2.rc1 unittests/windows/frame_links_test.rb
watir-2.0.1 unittests/windows/frame_links_test.rb
watir-2.0.0 unittests/windows/frame_links_test.rb
watir-2.0.0.rc3 unittests/windows/frame_links_test.rb
watir-2.0.0.rc2 unittests/windows/frame_links_test.rb
watir-1.9.2 unittests/windows/frame_links_test.rb
watir-1.9.2.rc1 unittests/windows/frame_links_test.rb
watir-1.9.1 unittests/windows/frame_links_test.rb
watir-1.9.1.rc1 unittests/windows/frame_links_test.rb
watir-1.9.0 unittests/windows/frame_links_test.rb
watir-1.9.0.rc7 unittests/windows/frame_links_test.rb
watir-1.9.0.rc6 unittests/windows/frame_links_test.rb
watir-1.9.0.rc5 unittests/windows/frame_links_test.rb
watir-1.9.0.rc4 unittests/windows/frame_links_test.rb
watir-1.9.0.rc3 unittests/windows/frame_links_test.rb