From: Ben Vishny Date: 2010-02-08T07:36:37+09:00 Subject: Rescue Block does not work Hi all, I am using a begin.. rescue.. else block to catch a timeout and try again until it succeeds. Despite the rescue block, the program still crashes due to a timeout error. Don't rescue blocks catch everything? success = false while success == false begin output2 = exportForm.click_button(exportForm.buttons[3]) rescue Timeout::Error output "Timeout.. waiting 5s then trying again" sleep(5) else success = true end end Thanks, Ben -- Posted via http://www.ruby-forum.com/.