Thanks for your reply.

This is one case that opening a url, how about other operations such as click a 
button/link/image/, fill in text field, etc. If all these operations in scripts 
use this method, then the code will become not concise.
Is there a global method/variable that could simplify this problem?

Regards,
Jason

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of sathees
Sent: 2007年3月28日 13:18
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] About the timeout of waitr

That will through a timeout exception and script will terminate.
If you wish to continue, then you got to handle that.

begin
timeout(20) do |timeout_length|
ie.goto "where ever you want"
end
rescue
puts $!
end

this is just the basic, modify as you need.
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to