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
