From: "Iñaki Baz Castillo" Date: 2010-02-08T08:43:41+09:00 Subject: Re: Rescue Block does not work El Domingo, 7 de Febrero de 2010, Ben Vishny escribió: > 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 Are you sure which is the exact exception raised? -- Iñaki Baz Castillo