Sha256: a889edba94a7503adf16b180fc3df444c6108022c8dbdc3cd2a0853c1ffe4588
Contents?: true
Size: 644 Bytes
Versions: 5
Compression:
Stored size: 644 Bytes
Contents
# test IE#exists? # revision: $Revision: 962 $ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') if $0 == __FILE__ require 'unittests/setup' class TC_IE_Exists < Test::Unit::TestCase 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 def setup @ie = Watir::IE.new end def test_we_closed_it @ie.close assert(!@ie.exists?) end def test_some_one_else_closed_it @ie.ie.quit sleep 0.3 # give it some time to close assert(!@ie.exists?) end end
Version data entries
5 entries across 5 versions & 1 rubygems