Class: Watir::IE

Inherits:
Object
  • Object
show all
Defined in:
lib/rwebunit/web_tester.rb

Class Method Summary collapse

Class Method Details

.close_all_but(except = nil) ⇒ Object



27
28
29
30
31
32
33
# File 'lib/rwebunit/web_tester.rb', line 27

def self.close_all_but(except=nil)
  Watir::IE.each do |ie|
    ie.close_modal
    ie.close unless except and except.hwnd == ie.hwnd
  end
  sleep 1.0 # replace with polling for window count to be zero?
end