Sha256: 611662093f1ffb93e3d82cbd3f017f30cf709295abdca9db083014deabc5b70f

Contents?: true

Size: 438 Bytes

Versions: 5

Compression:

Stored size: 438 Bytes

Contents

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

class TC_CloseAllWindows < Watir::TestCase
  
  def setup
    @browsers = []
    5.times {@browsers << Watir::Browser.new}
  end

  def test_close_all_windows
    assert @browsers.all? {|browser| browser.exists?}
    Watir::IE.close_all
    assert @browsers.all? {|browser| not browser.exists?}
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
watir-1.8.1 unittests/close_all_test.rb
watir-1.8.1.rc1 unittests/close_all_test.rb
watir-1.8.0 unittests/close_all_test.rb
watir-1.7.1 unittests/close_all_test.rb
watir-1.7.0 unittests/close_all_test.rb