> IEs COM interface does not expose any of the HTTP information for the > request. It does when the error code is displayed in the HTML. :-) That's what I was getting at. If you get a 404 or 500 displayed in the page itself, you can get it. To trap all HTTP return codes, you'll need some sort of a proxy.
-Jonathan > On 10/24/05, Jonathan Kohl <[EMAIL PROTECTED]> wrote: > > > > Or in the body - not sure if getHTML will get the title tags or not. > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Kohl > > > Sent: October 24, 2005 9:55 PM > > > To: [email protected] > > > Subject: Re: [Wtr-general] getting the exception value > > > > > > You could probably use getHTML, and then use a regular > > > expression to parse out the error from the HTML. You can > > > often find that in the title tags: > > > <title>404 Not Found</title> > > > > > > Hope that helps. > > > > > > -Jonathan > > > > > > > -----Original Message----- > > > > From: [EMAIL PROTECTED] > > > > [mailto:[EMAIL PROTECTED] On Behalf Of > > > Pierre Garigue > > > > Sent: October 24, 2005 9:38 AM > > > > To: [email protected] > > > > Subject: [Wtr-general] getting the exception value > > > > > > > > > > > > Looking around the API I found this: > > > > > > > > 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 > > > > > > > > Cheers > > > > > > > > Pierre Garigue > > > > Quality Assurance > > > > EXTEND>>MEDIA > > > > 190 Liberty Street > > > > Toronto, Ontario > > > > Canada > > > > M6K 3L5 > > > > _______________________ > > > > e:[EMAIL PROTECTED] > > > > http://www.extend.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 > > > > > > > _______________________________________________ > > Wtr-general mailing list > > [email protected] > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > > -- > "http://ruby-lang.org -- do you ruby?" > > Jeff Wood > _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
