Try this
 
require 'watir'
begin
  ie = Watir::IE.start('http://wwwww.111.com/')
rescue => e
  puts "error: #{e}"
end
 
Zeljko


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of jim che
Sent: Thursday, November 24, 2005 2:26 AM
To: [email protected]
Subject: [Wtr-general] How to check the error when opening the html pages

Hi all
       I want to know how to check the errors when opening the html pages.For example I open the page "wwwww.111.com" it must be error and the ruby will stop.
The most things I want to do is that I want to catch that error and back the IE in order to let the ruby continue to execute but not stop.
Thank you for any help
jim


Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to