I updated my Watir this morning to the most current and when I ran my script that used the click_no_wait I get this error:

 

NameError: undefined local variable or method `attach_command' for #<Watir::Frame:0x2cc1780>

    C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1189:in `eval_in_spawned_process'

    C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2411:in `click_no_wait'

 

On further investigation there are 2 methods in Watir with that name:

watir.rb (2170):    def attach_command

watir.rb (2647):    def attach_command

 

Do I need to do something else (require, include, etc) or do I need to update some other file or what?

 

Thanks,

 

--Mark

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord
Sent: Wednesday, June 14, 2006 4:47 PM
To: [email protected]
Subject: Re: [Wtr-general] very neat trick with Ruby system() (or any otherlanguage on Windows)

 

 

On 6/14/06, Chris McMahon <[EMAIL PROTECTED]> wrote:

As we all know,

system("foo.exe")

does not return control to the calling script until "foo.exe" has finished.

however, system("start foo.exe")

does.  This has interesting implications for performance testing and
for running many test files simultaneously from a controller script.


I just updated the code used by click_no_wait to use this technique to avoid having to spawn a thread. Thanks.

 

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

Reply via email to