Hi, Zeljko,

 

         Follow your suggestion, I find the methods set_fast_speed & 
set_slow_speed, and can control the script execution speed. 

I want to make it could be configurable in testing script, so write the 
following code in my test script,

----------------------------------------------------------------------------

$FAST_SPEED = false

class Watir::IE

         @@attach_timeout = 5

         DEFAULT_TYPING_SPEED = 0.2

         DEFAULT_SLEEP_TIME = 0.2

end

----------------------------------------------------------------------------

 

And the above code could take effect, but there will be two warnings output in 
console, 

../include/RESILIENCE_CLASS.rb:36: warning: already initialized constant 
DEFAULT_TYPING_SPEED

../include/RESILIENCE_CLASS.rb:37: warning: already initialized constant 
DEFAULT_SLEEP_TIME

 

It says I change the assign a new value to initialized constant. 

 

If I want to make those two values could configurable in testing script as well 
as make them conform to the watir/ruby syntax, is there a reasonable way to 
eliminate this message?

 

Thanks in advance.

 

Jason

 

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ?eljko Filipin
Sent: 2007年4月4日 16:49
To: [email protected]
Subject: Re: [Wtr-general] About the execution speed of waitr/ruby

 

Hi Jason,

Try

ie.set_slow_speed
ie.set_fast_speed

If you want more control (faster, slower) you can modify that methods.

Zeljko
-- 
ZeljkoFilipin.com 

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to