[Wtr-general] running all watir tests and closing IE

Paul Rogers paul.rogers at shaw.ca
Fri Nov 5 13:54:42 EST 2004


I personally dont like closing the browser. If a test fails, whats left in the browser window helps me debug the problem.

Looks like Im out voted though :-(

----- Original Message -----
From: jkohl at telusplanet.net
Date: Friday, November 5, 2004 11:50 am
Subject: Re: [Wtr-general] running all watir tests and closing IE

> Bret got it in there while I was writing this email, so disregard 
> my message and
> get a new watir version. :-)
> 
> calling "$ie.close" in a script is a bit more intuitive anyway.
> 
> -Jonathan
> 
> 
> > It doesn't look like a method for closing IE has made it into 
> watir yet. In
> > the
> > meantime, add this method to "class IE" in the watir.rb file:
> > def quit ()
> >   @ie.quit
> > end
> > 
> > To call it in your test script:
> > $ie.quit
> > 
> > This will close the browser.
> > 
> > -Jonathan
> > 
> > Quoting Chris Morris <chrismo at clabs.org>:
> > 
> > > Jeff Barrett wrote:
> > > 
> > > >I would have tried refactoring all the watir test cases to do 
> this except
> > I
> > > don't know how to tell IE to close.
> > > >  
> > > >
> > > It's something simple, like ie.close. The cliecontroller 
> sources have 
> > > this in it. You can browse the CVS for it. (I'm too pressed 
> for time 
> > > right now to do it myself).
> > > 
> > > -- 
> > > Chris
> > > http://clabs.org
> > > 
> > > _______________________________________________
> > > Wtr-general mailing list
> > > Wtr-general at rubyforge.org
> > > http://rubyforge.org/mailman/listinfo/wtr-general
> > > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > Wtr-general mailing list
> > Wtr-general at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/wtr-general
> > 
> 
> 
> 
> 
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
> 




More information about the Wtr-general mailing list