# Increase Default TimeOut in WATIR

**URL:** <https://www.ruby-forum.com/t/increase-default-timeout-in-watir/225606>\
**Category:** Ruby\
**Created:** [January 18, 2013, 7:26am UTC](https://www.ruby-forum.com/t/increase-default-timeout-in-watir/225606 "2013-01-18T07:26:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [January 18, 2013, 7:26am UTC](https://www.ruby-forum.com/t/increase-default-timeout-in-watir/225606/1 "2013-01-18T07:26:29Z")

</div>

hi,  
I have been sing WATiR for quite a time. Right now I m working with a  
remote system and because of VPN access the pages take long time to  
load. I wish to increase WATiR’s default waiting time to a user define  
seconds. Can any one help me out.

During debuggin my script I came across timeout.rb in Ruby/1.8  
directory. Can any one suggest if I need to make changes in this file or  
some other file. Or if I can include some timeout module and set it to  
my desired value or if there is some global variable that i can set.

Thanks & Regards,  
Manav  
Bahngalore

---

<div class="post-metadata">

**Author:** ![manavkbgupta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e68b1a/32.png) [@manavkbgupta](https://www.ruby-forum.com/u/manavkbgupta)\
**Post date:** [January 18, 2013, 10:03pm UTC](https://www.ruby-forum.com/t/increase-default-timeout-in-watir/225606/2 "2013-01-18T22:03:14Z")

</div>

I’m not sure about Watir, but using webdriver you just change the  
underlying driver’s timeout:

@client = Selenium::WebDriver::Remote::Http::Default.new  
@client.timeout = 300 # seconds – default is 60

@driver = Watir::Browser.new :firefox, :http\_client =\> @client
