Sha256: 065b69b739a2a1cdecefe95515b7e390d26757eac449ab984bc27fe99582aa38

Contents?: true

Size: 731 Bytes

Versions: 2

Compression:

Stored size: 731 Bytes

Contents

# tests of click_no_wait for links in frames
# revision: $Revision: 1078 $

$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', '..') if $0 == __FILE__
require 'unittests/setup'

class TC_Frame_Links < Test::Unit::TestCase
  include Watir
  
  def setup
    goto_page "frame_links.html"
  end
  
  def test_click_in_a_frame
    $ie.frame('linkFrame').link(:text, 'test1').click
    assert($ie.frame('linkFrame').text.include?('Links2-Pass'))
  end
  
  def test_click_no_wait_in_a_frame
    $ie.frame('linkFrame').link(:text, 'test1').click_no_wait
    wait_until(2){$ie.frame('linkFrame').text.include?('Links2-Pass')}
    assert($ie.frame('linkFrame').text.include?('Links2-Pass'))
  end  
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
watir-1.5.5 unittests/windows/frame_links_test.rb
watir-1.5.6 unittests/windows/frame_links_test.rb