I ran into this problem before and create a method that looks like this

# detects whether an IE windows exists or not
# returns true if the IE browser still exists (hasn't been closed) or
false otherwise
class IE
    def exists?
        begin   
             return false if @ie.hWnd== -1    
             return true
        rescue      
            return false
       end
   end
 end




_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to