Jim,
Thanks very much for the update.   It sounds like you have something
very solid to focus on.   If I can be of any assistance, please let me
know!
-Jackie

On Mar 17, 1:08 pm, Jim Matthews <jim_m...@swbell.net> wrote:
> I have been trying to figure out what the problem is with
> click_no_wait method for a couple of weeks.  I expect your problem is
> related to mine.
>
> I believe I have narrowed it down to the following, but I do not have
> an answer yet.
>
> click_no_wait builds a string to execute in a separate shell.  It then
> does:
> system(exec_string)
>
> It appears that the Ruby commands are not getting executed, but I have
> not seen any errors.
>
> What I am trying to do now is create a very short Ruby script that
> defines a simple set of Ruby commands in a string called exec_string
> and have that script do a
>
> system(exec_string)
>
> to see if I can get that to work.  So far I am not having any luck
> getting the execution string to work.  I am still not seeing any
> errors when I run the script.  I figure if I can get this to work, it
> will give me a clue as to why click_no_wait is not working.
>
> Jim
>
> On Mar 17, 11:42 am, JackieH <jkulb...@juno.com> wrote:
>
> > Just wanted to put this back out there to see if anyone had any
> > thoughts...
>
> > On Mar 12, 2:32 pm, JackieH <jkulb...@juno.com> wrote:
>
> > > I haven encountered the same issue...When using theselectmethod a
> > > pop-up box occurs, but when I added theno_waitroutine the code just
> > > ends up in the wait for pop-up routine and no pop-up appears....From
> > > what I can, the code gets into theno_waitmethod fine, but it never
> > > reaches theselectmethod of theselectlist...A few interesting
> > > tidbits:  I noticed some chatter about a patch for
> > > eval_in_spawned_process for a click_no_wait issue as well as a radio
> > > button no wait issue, so I did implement that with high hopes it might
> > > fix my issue, but alas, no luck...What is interesting is that this
> > > same code has worked on IE6...It sets theselectlistand handles the
> > > pop-up correctly...
>
> > > Any advice would be greatly appreciated!
>
> > > -Jackie
>
> > > On Feb 16, 3:25 am, Bill Xu <xulei8823...@gmail.com> wrote:
>
> > > > Hi:
> > > >    I want to use select_no_wait function (I am testing on a dropdown 
> > > > control
> > > > and while youselectthe dropdown control, it pops up download file page),
> > > > select_no_wait is the function i got 
> > > > fromhttp://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups(iteam6)
> > > > but it seems does not work. It can not trigger theselectoperation. Do 
> > > > you
> > > > have some ideas? (system will hang when run to select_no_wait function
> > > > and the pop up window will not show up)
>
> > > > #sample code#
> > > > #select_no_wait method forselectlists - needed for popups resulting from
> > > >selectlists
> > > > module Watir
> > > >     class Element
> > > >         #select_no_wait - selects a drop-down element spawning a new
> > > > process.
> > > >         #this is needed to close potential pop-ups thatselectdrop-down 
> > > > can
> > > > trigger.
> > > >         def select_no_wait(item)
> > > >             assert_enabled
> > > >             puts "calls select_no_wait function"
> > > >             highlight(:set)
> > > >             object = "#{self.class}.new(self,
> > > > :unique_number,#{self.unique_number})"
> > > >             @page_container.eval_in_spawned_process(object +
> > > > ".set('#{item}')")
> > > >             highlight(:clear)
> > > >         end
> > > >     end
> > > > end
>
> > > > def save_file(filepath)
> > > >     ai = WIN32OLE.new("AutoItX3.Control")
> > > >     ai.WinWait("File Download", "", 5)
> > > >     ai.ControlFocus("File Download", "", "&Save")
> > > >     sleep 1
> > > >     ai.ControlClick("File Download", "", "&Save", "left")
> > > >     ai.WinWait("Save As", "", 5)
> > > >     sleep 1
> > > >     ai.ControlSend("Save As", "", "Edit1",filepath)
> > > >     ai.ControlClick("Save As", "", "&Save", "left")
> > > >     ai.WinWait("Download complete", "", 5)
> > > >     ai.ControlClick("Download complete", "", "Close")
> > > >   end
>
> > > > #main code#
> > > > $ie.select_list(:id,"_id0:actions").select("Generate Default Template")
> > > > save_file("C:\\file1.txt")
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to