Re: [Wtr-general] 'ie.close' or 'ie.close if ie'

2007-03-06 Thread matt
Hello, I am new to Ruby/watir ... so forgive me plz. After reading through the ie window threads, I am still puzzled how to create a single ie browser for my test. Questions: 1) If there is one browser instance for the test, how is one to close the browser at the end of the test? Should a

Re: [Wtr-general] 'ie.close' or 'ie.close if ie'

2007-02-22 Thread Bret Pettichord
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,

[Wtr-general] 'ie.close' or 'ie.close if ie'

2007-02-15 Thread Maisonnette
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. 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

Re: [Wtr-general] 'ie.close' or 'ie.close if ie'

2007-02-15 Thread John Lolis
I'm not exactly sure why someone would do 'ie.close if ie'. Below is my best guess at it. --- require 'watir' include Watir ie = nil if ie puts 'ie object created' else puts 'no ie object' endie ie = IE.new() if ie puts 'ie object created' else puts 'no