From: Paul Lutus Date: 2006-12-06T11:35:10+09:00 Subject: Re: ie.link(:text, "Next").click curious wrote: > could you please tell me how I can trap the error in 'rescue'.. > Like this: begin # error-creating code here rescue # error-handling cede here end Working example: ------------------------------------- #!/usr/bin/ruby -w begin x = 1/0 rescue Exception => e puts "trapped error: " + e end ------------------------------------- Output: trapped error: divided by 0 -- Paul Lutus http://www.arachnoid.com