Sha256: 06b1df80a00b92d73137ce612e49e1dd59cb4e01cf8e8b5e2f865193ba48fe5b

Contents?: true

Size: 432 Bytes

Versions: 24

Compression:

Stored size: 432 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

24 entries across 24 versions & 2 rubygems

Version Path
watir-classic-3.0.0 unittests/close_all_test.rb
watir-3.0.0.rc3 unittests/close_all_test.rb
watir-3.0.0.rc2 unittests/close_all_test.rb
watir-3.0.0.rc1 unittests/close_all_test.rb
watir-2.0.4 unittests/close_all_test.rb
watir-2.0.3 unittests/close_all_test.rb
watir-2.0.2 unittests/close_all_test.rb
watir-2.0.2.rc1 unittests/close_all_test.rb
watir-2.0.1 unittests/close_all_test.rb
watir-2.0.0 unittests/close_all_test.rb
watir-2.0.0.rc3 unittests/close_all_test.rb
watir-2.0.0.rc2 unittests/close_all_test.rb
watir-1.9.2 unittests/close_all_test.rb
watir-1.9.2.rc1 unittests/close_all_test.rb
watir-1.9.1 unittests/close_all_test.rb
watir-1.9.1.rc1 unittests/close_all_test.rb
watir-1.9.0 unittests/close_all_test.rb
watir-1.9.0.rc7 unittests/close_all_test.rb
watir-1.9.0.rc6 unittests/close_all_test.rb
watir-1.9.0.rc5 unittests/close_all_test.rb