What kind of message are you looking for? It's timing out looking for the object that doesn't appear (or does it?). If you want to control the error reported, you could do that.
begin whatever.wait_until_present rescue raise "whatever message you want" end Dave On Wednesday, March 7, 2012 9:14:25 PM UTC-8, Ankita Gupta wrote: > > I am using #.wait_until_present(timeout = 60) to verify the element > when the page loads. > Now if the page does not load then my scripts wait for 60 seconds to > locate this element and after that it gives Time-out error > > I would like to know if there is any other way where in I could put an > assertion to give proper error message rather than time-out message? -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com