Maisonnette wrote:
> Hi everyone ,
> I have two question for you !
>
> 1- I don't know what 's the difference between the "ie.close" and the 
> "ie.close if ie".
>   
In the first case if ie is nil (i.e. has not been initilized), then you 
will get a "missing method 'close' for nil" error. In the second case, 
you won't get this error.

> 2- My iexplore.exe have it's since increase to 115000 KB and it crash ... to 
> do this , i have a testsuite and many (~35) testcase. Every testcase open an 
> ie windows [b](ie = 
> Watir::IE.start("http://localhost:7001/description/simulerSumatra.do";)[/b] , 
> do it's test and close the ie window [b](ie.close if ie)[/b]
>
> [i]More information :
> watir 1.5.1.1145
> ruby 1.8.5
> WinXP SP2[/i]
>
> Any awnsers will be appreciated :-)
>   
Uh, stop doing that. Seriously, try to reuse your browsers instead of 
creating them for each test. You can either store a reference to it in a 
$global or just use attach to an existing window. That's what i do. It's 
much more reliable and it is neater as well -- no taking over your 
desktop when running.
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to