Hey Jarmo, When my script selects an option, a javascript pop-up shows up. WATIR is stuck at this point, and cannot move since it is waiting for something in the list element (possibly closing said pop-up).
Do you have another idea? I tried throwing a thread up with AutoIt, but for some odd reason it wasnt working... On Jan 18, 1:53 pm, Jarmo Pertman <jarm...@gmail.com> wrote: > It should be probably in the SelectList class. But why do you need it > anyway? Can't you solve the problem somehow differently? > > Jarmo Pertman > ----- > IT does really matter -http://www.itreallymatters.net > > On Jan 17, 11:34 pm, watirboy <enrique.j.ma...@gmail.com> wrote: > > > Hey Guys, > > > I have been reading up on possibly patching my WATIR installation with > > a select_no_wait function (similar to click_no_wait) but I have no > > idea where I should place this. When I put it in lib/watir/element.rb > > I get the following error: > > > Fast Debugger (ruby-debug-ide 0.4.16, ruby-debug-base 0.10.4) listens > > on 127.0.0.1:1157 > > Loaded suite C:\code\watir\scripts\testcase > > Started > > E > > Finished in 9.582906 seconds. > > > 1) Error: > > test_01(TestCase): > > NoMethodError: undefined method `eval_in_spawned_process' for > > #<Watir::IE:0x3dccc98> > > C:/ruby/lib/ruby/gems/1.8/gems/watir-1.7.1/lib/watir/element.rb: > > 358:in `select_no_wait' > > C:\code\watir\scripts\testcase.rb:55:in `test_01' > > > 1 tests, 0 assertions, 0 failures, 1 errors > > > and this is the code I entered: > > > module Watir > > class Element > > # ... the rest of Element code above here... > > def select_no_wait(item) > > assert_enabled > > highlight(:set) > > object = > > "#{self.class}.new(self, :unique_number,#{self.unique_number})" > > @page_container.eval_in_spawned_process(object + > > ".select('#{item}')") > > highlight(:clear) > > end > > end > > end -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com