It doesn't work. I don't know what to do. I checked the documentation and tried 
several different things. 
 
I also started AUInfo.exe and the Controls and Information are exactely the 
same as in your example script. 
I've inserted also statement to give out if a function was executed. The 
logfile then has all the Statements inside, as all function where executed 
properly, but also a Error is stated:
 
WIN32OLERuntimeError: Unknown property or method 'document'
      HRESULT error code:0x800706ba
          The RPC Server is unavailable
c:\ruby\.......\watir.rb: in 'method_missing'
c:\ruby\.......\watir.rb: in 'document'
c:\ruby\.......\watir.rb: in 'getLink'
c:\ruby\.......\watir.rb: in 'initialize'
c:\ruby\.......\watir.rb: in 'new'
c:\ruby\.......\watir.rb: in 'link'
c:\watir_bonus\...\document_lib.rb  (stating the line number where the error 
started, is the next fnuction after the autoit functions)
 

________________________________

Von: [EMAIL PROTECTED] im Auftrag von Dave Burt
Gesendet: Do 15.09.2005 11:21
An: [email protected]
Betreff: Re: [Wtr-general] How to click the Windows'Save'buttonwhendownloading 
a file



Mueller schrieb:
> Thanks for the answer. I tried this approach, but the Windows opens and
> nothing
> happens. the scripts is seems to "wait" for an action but nothing happens.
> When I
> cancel the script no error is reported in the log file.
>
> Any Idea why it doesnt work? Do i have to install some additional components?

Try typing the script line by line into IRB, see where it stops working.

If it's not getting a control or window (perhaps because you have a different
version of IE or Windows to me, and the text or controls in the windows are
different), you might have to change some of the parameters I'm passing to
WindowWait or ControlClick etc. You can download AutoIt from
http://www.autoitscript.com/autoit3/downloads.php - get the ZIP, and just pick
AU3Info.exe out of it - if you run it, then cause the dialogs to be shown, that
will tell you the info you need for your script.

Cheers,
Dave

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



<<winmail.dat>>

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

Reply via email to