On Tue, Mar 2, 2010 at 3:23 PM, yoggy <samuelades...@googlemail.com> wrote:
>  rescue Watir::Exception::NavigationException => e

You are rescuing the exception, hence the script is not terminated. You
should do something like this:

def navigate(page_name)
  browser.check_for_http_error
rescue Watir::Exception::NavigationException => e
  puts "Page did not load: #{e}"
  raise
end

Željko
--
watir.com - community manager
pledgie.com/campaigns/2982 - donate to Watir
watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

Reply via email to