Re: [Wtr-general] .Can we set the Watir's time_out_value in the script?

2007-04-03 Thread vijay
Thanks Jlolis for your reply.  It is exactly what I had wanted.

Thanks,
Vijay.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] .Can we set the Watir's time_out_value in the script?

2007-03-28 Thread John Lolis
class Watir::IE
@@attach_timeout = 10
end

I think that should work
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] .Can we set the Watir's time_out_value in the script?

2007-03-28 Thread vijay
Hello people,

In our application, there are is a dialog box, which takes a lot of time to 
load.  We give the statement, 'ie.modal_dialog', at the point, where the dialog 
box would come.  But this statement times out within a few seconds before the 
modal dialog gets loaded. While executing the 'ie,modal_dialog' statement, 
Watir throws an exception saying "Modal dialog did not appear within 2.0 
seconds".  So we opened the 'watir.rb' file and increased the 
'@@attach_timeout' value present in it from 2.0 to 20.0.  Now Watir waits for 
the dialog to come (which would come within 15 seconds) and attaches to it.  
Can we increase this 'attach_timeout' value through a watir command instead of 
opening the 'watir.rb' file and doing that manually (In a testing tool named 
'Test Partner', we can do the same with the command, 'timeout_msec = 20')?

Thanks for your time,
Vijay.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general