Sha256: b6e0e109876553ac26a8c58d2c136605f58a314fbcfe7a922a3f3e8e7f123183

Contents?: true

Size: 721 Bytes

Versions: 4

Compression:

Stored size: 721 Bytes

Contents

# test IE#exists?
# revision: $Revision: 962 $

$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') unless $SETUP_LOADED
require 'unittests/setup'

class TC_IE_Exists < Test::Unit::TestCase 
  tags :fails_on_firefox, :new
  def setup
    @ie = Watir::IE.new
  end
  def teardown
    @ie.close
  end
  def test_exists
    assert(@ie.exists?)
  end
end

class TC_IENotExists < Test::Unit::TestCase 
  tags :fails_on_firefox, :new
  def setup
    @ie = Watir::IE.new
  end
  def test_we_closed_it
    @ie.close
    assert_false(@ie.exists?)
  end
  def test_some_one_else_closed_it
    @ie.ie.quit
    sleep 0.3 # give it some time to close
    assert_false(@ie.exists?)
  end    
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
watir-1.6.6 unittests/ie_exists_test.rb
watir-1.6.6.rc2 unittests/ie_exists_test.rb
watir-1.6.6.rc1 unittests/ie_exists_test.rb
watir-1.6.2 unittests/ie_exists_test.rb