Sha256: a54bb7a07ee587b706448eba7f46796eac3019f8a21e0a6222b988438aa36d77

Contents?: true

Size: 582 Bytes

Versions: 35

Compression:

Stored size: 582 Bytes

Contents

# rapidly open and close IE windows

$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', '..', 'lib')
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', '..', '..', 'commonwatir', 'lib')
require 'test/unit'
require 'watir/ie'
require 'watir/contrib/ie-new-process'

class ZZ_OpenClose < Test::Unit::TestCase
  20.times do | i |
    define_method "test_#{i}" do
      sleep 0.05
      sleep i * 0.01
      ie = Watir::IE.new_process
      ie.goto 'http://blogs.dovetailsoftware.com/blogs/gsherman/default.aspx'
      ie.close
    end
  end
end       

Version data entries

35 entries across 35 versions & 1 rubygems

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