Sha256: bd50556b9ed543ed47cd05d05a7fca61f88208e143b76248a8c64f2176fcddd8

Contents?: true

Size: 695 Bytes

Versions: 3

Compression:

Stored size: 695 Bytes

Contents

$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') if $0 == __FILE__
require 'unittests/setup'
  
class Lists_Tests < Watir::TestCase
  include Watir
  
  def setup
    $ie.goto($htmlRoot + 'lists.html')
  end        

  def test_list_items_exist
    assert($ie.li(:id, 'list1').exists?)
    assert($ie.li(:id, 'list2').exists?)
    assert($ie.li(:id, 'list3').exists?)    
    assert($ie.li(:id, 'ordered1').exists?)    
    assert_equal('Coffee', $ie.li(:index, 1).text)
  end

  def test_list_item_exists_by_name
    assert($ie.li(:name, 'l1').exists?)
    assert ! ($ie.li(:name, 'maptest02').exists?)
  end  
  
  def test_li_length
    assert_equal(6, $ie.lis.length)
  end

end 

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
watir-1.5.2 unittests/lists_test.rb
watir-1.5.3 unittests/lists_test.rb
watir-1.5.4 unittests/lists_test.rb