Thank you very much for your replay. I tried the following:

prompt_message = "Do you want to save this file?"
window_title = "File Download"
save_dialog ="AutoItX3.Control")
sleep 1
$browser.div(:id,"contents").table(:index, "1")[1][2].table
(:index,"12")[2][2].link(:text, "download").click_no_wait
 $text=WinGetText(window_title, "")
 if $text=~/omnicast/
      $aFile.puts("Omnicast download passed")
      $aFile.puts("Omnicast download failed")

I put require 'watir/dialog' on top and registered AutoIt dll
successfully. But I got “NoMethodError: undefined method `WinGetText'
” error while I executing the code. Did I miss something?

On Jan 12, 5:34 pm, "Bill Agee" <> wrote:
> AutoIt may be able to do what you want.  Check out the WinGetTitle 
> andWinGetTextfunctions:
> There should be some code examples in the wtr-general archives showing
> how to use those functions within Ruby scripts.  If you can't find
> anything useful, just reply back and I'll see if I can write an
> example.
> Thanks
> Bill
> On Mon, Jan 12, 2009 at 1:35 PM, <> 
> wrote:
> > I have a File download popup window looks the same as in
> >
> > I wonder if there is a way to check the Name and Type text on this
> > window.
> > Any suggestions are appreciated!
> > Jun
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to
Before posting, please read the following guidelines:
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to