2008/10/22 Bret Pettichord <[EMAIL PROTECTED]>

>
> What happens if you add a sleep statement at the location indicated below?
>
> ayanami wrote:
> > I'm using method click_no_wait to solve the file download case.
> > The problem is that the first time i use click_no_wait to click a link
> > then a File Download window can be showed.
> > but after that I do the same thing again then no File Download window
> > popup.It like nothing  has been done.
> >
> > the script is like:
> >
> >
> > ie = Watir::IE.new
> > ie.goto("An URL")
> > ie.link(:id,XXXX).click_no_wait       #here is normal,with the next
> > sentence I successfully download a file.
> > file_download_method
> >
>
> -> Add sleep here
> > ie.link(:id,XXXX).click_no_wait       #nothing happened here...and
> > also no error occured.if I write "ie.link(:id,XXXX).click" instand
> > then a file download windows will be showed...
> > file_download_method
> >
> >
> > >
> >
>
>
> >
> i did this ,but have no effect.
i print some infomation to debug the programme,i found that the second
click_no_wait has been executed.
but i wonder why i didn't see the FileDownload Dialog?

> I'm using method click_no_wait to solve the file download case.
> The problem is that the first time i use click_no_wait to click a link
> then a File Download window can be showed.
> but after that I do the same thing again then no File Download window
> popup.It like nothing  has been done.
>
> the script is like:
>
>
> ie = Watir::IE.new
> ie.goto("An URL")
> ie.link(:id,XXXX).click_no_wait       #here is normal,with the next
> sentence I successfully download a file.
> file_download_method
>

-> Add sleep here
> ie.link(:id,XXXX).click_no_wait       #nothing happened here...and
*i add some print ihere and i can see cmd print my infomation*
> also no error occured.if I write "ie.link(:id,XXXX).click" instand
> then a file download windows will be showed...
> file_download_method

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to