RE: RE: [Wtr-general] Detecting a closed IE

2005-08-18 Thread Peter Chau
This code works for minimize and background IE browsers... Is there a way to turn background on/off in the middle of a script?? require 'watir' include Watir class IE def exists? begin @ie.hWnd== -1 return true rescue

RE: RE: [Wtr-general] Detecting a closed IE

2005-08-18 Thread Bret Pettichord
$ie.ie.visible = false At 11:12 AM 8/18/2005, Peter Chau wrote: This code works for minimize and background IE browsers... Is there a way to turn background on/off in the middle of a script?? require 'watir' include Watir class IE def exists? begin @ie.hWnd== -1

Re: RE: [Wtr-general] Detecting a closed IE

2005-08-17 Thread Bret Pettichord
Window_exists? Paul - Original Message - From: Peter Chau [EMAIL PROTECTED] Date: Wednesday, August 17, 2005 11:47 am Subject: RE: [Wtr-general] Detecting a closed IE Thanx this works class IE def window_exists? begin return false if @ie.hWnd== -1 return

Re: RE: [Wtr-general] Detecting a closed IE

2005-08-17 Thread Bret Pettichord
by hidden, minimised? or, behind another window or something else Im not thinking of? Paul - Original Message - From: Bret Pettichord [EMAIL PROTECTED] Date: Wednesday, August 17, 2005 4:17 pm Subject: Re: RE: [Wtr-general] Detecting a closed IE How about just 'exists?' Note