Sha256: d97fc72b2f99dc1321db3031b847a90e7b35b87fdb0da9683de6c5e577d8fd45

Contents?: true

Size: 487 Bytes

Versions: 5

Compression:

Stored size: 487 Bytes

Contents

# rapidly open and close IE windows
require 'test/unit'
require 'watir'
require 'watir/contrib/ie-new-process'

class ZZ_OpenClose < Test::Unit::TestCase
  def setup
    if $ie
      $ie.close 
      $ie = nil 
    end
  end
  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

5 entries across 5 versions & 1 rubygems

Version Path
watir-1.5.4 unittests/windows/open_close_test.rb
watir-1.5.2 unittests/windows/open_close_test.rb
watir-1.5.3 unittests/windows/open_close_test.rb
watir-1.5.5 unittests/windows/open_close_test.rb
watir-1.5.6 unittests/windows/open_close_test.rb