One part of the argument is that we want to be able to control how long we wait outside of watir, ie wrapping the call in a timeout block. That works fine, but you need to put it everywhere. Adding the timeout in the wait method, stops you having to do that. And, if we are smart, we can switch off the timeout in wait, eg:
ie.max_timeout = 10 # seconds ie.goto(http://longloadingpage.com) # => raises NavigationTimeoutException or what ever ie.max_timeout = nil # seconds ie.goto(http://longloadingpage.com) # => waits for ever and this can be used in other places too: ie.max_timeout = xxxx # seconds ie.button(:id , /foo/).click => obeys the max_timeout I think that is a preferable solution to having to do timeout(10) do ie.goto(..) end I do wonder why I never added that code though....... Paul ----- Original Message ----- From: "Bret Pettichord" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Friday, October 13, 2006 4:19 PM Subject: Re: [Wtr-general] IE.GoTo - Can You Set A Timeout or an Idle? > This is in Jira: > http://jira.openqa.org/browse/WTR-46 > > Please add comments to this ticket if you feel strongly about this issue. > _______________________________________________ > Wtr-general mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/wtr-general > _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
