I'm looking at this looks very interesting to me 

 assert_raises(NavigationException) { $ie.goto('http://localhost:3001') } 


thanks 

If you think that we go away from the "begin assert rescue" way of doing things,
what should we move to? Would that mean as well moving away from using the  
Watir::Exception?
        

Cheers
Pierre Garigue 



-----Original Message-----
From: Bret Pettichord [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 27, 2005 1:32 AM
To: [email protected]
Subject: Re: [Wtr-general] getting the exception value


At 10:37 AM 10/24/2005, Pierre Garigue wrote:
>Watir::Exception::NavigationException
>"This exception is thrown if an http error, such as a 404, 500 etc is 
>encountered while navigating"
>
>Does anyone have an example where this is used? I would also very much 
>like to be able to know if it was a 404 or a 500 for my logs.

Ah! Now i remember. This looks like some code that Paul and I paired on. I 
only understand about half of it. I suspect he feels the same way, but with 
the other half. I don't think we quite finished it.

You can look at navigate_test.rb to learn a bit about it, but i suspect 
that to make good use of it, you'll have to finish where we left off. The 
code is kind of hairy...

Bret


_____________________
  Bret Pettichord
  www.pettichord.com

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


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

Reply via email to