# Timeout for watir wait?

**URL:** <https://www.ruby-forum.com/t/timeout-for-watir-wait/175246>\
**Category:** Ruby\
**Created:** [September 10, 2009, 5:50am UTC](https://www.ruby-forum.com/t/timeout-for-watir-wait/175246 "2009-09-10T05:50:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paragadosm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c68b51/32.png) [@paragadosm](https://www.ruby-forum.com/u/paragadosm)\
**Post date:** [September 10, 2009, 5:50am UTC](https://www.ruby-forum.com/t/timeout-for-watir-wait/175246/1 "2009-09-10T05:50:32Z")

</div>

I’m currently using Ruby 1.8.5, Rubygems 0.9.2, Watir 1.5.2

I’m doing a standard login on a page using the .click method on the  
Login button. I’d like to throw an exception or failure message back if  
it takes more than X amount of seconds to login. Is there any new  
developments or a workaround to the wait with no timeout, built-in to  
the click method?

---

<div class="post-metadata">

**Author:** ![paragadosm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c68b51/32.png) [@paragadosm](https://www.ruby-forum.com/u/paragadosm)\
**Post date:** [September 10, 2009, 5:13pm UTC](https://www.ruby-forum.com/t/timeout-for-watir-wait/175246/2 "2009-09-10T17:13:15Z")

</div>

I noticed this morning that there is a JIRA ticket out for this  
(WTR-192); however, there hasn’t been an update on the ticket for  
awhile.

I’ve looked through Watir release notes, but there’s no indication that  
this was released yet. Anyone have any additional information on this?

---

<div class="post-metadata">

**Author:** ![paragadosm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c68b51/32.png) [@paragadosm](https://www.ruby-forum.com/u/paragadosm)\
**Post date:** [September 10, 2009, 6:58pm UTC](https://www.ruby-forum.com/t/timeout-for-watir-wait/175246/3 "2009-09-10T18:58:48Z")

</div>

Chad Locke wrote:

> I noticed this morning that there is a JIRA ticket out for this  
> (WTR-192); however, there hasn’t been an update on the ticket for  
> awhile.
> 
> I’ve looked through Watir release notes, but there’s no indication that  
> this was released yet. Anyone have any additional information on this?

May it’s something you can implement by yourself.  
C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir\ie-class.rb

You can take this as reference:  
[http://wiki.openqa.org/display/WTR/Security+Alerts](http://wiki.openqa.org/display/WTR/Security+Alerts)

-ronnie.
