[Wtr-general] Can Someone Explain This Pls... I Cant Find TheReason...
Cain, Mark
Mark_Cain at RL.gov
Fri Jun 22 09:36:43 EDT 2007
Did you try using the 'click_no_wait' method for the link click?
--Mark
-----Original Message-----
From: wtr-general-bounces at rubyforge.org
[mailto:wtr-general-bounces at rubyforge.org] On Behalf Of san
Sent: Friday, June 22, 2007 2:26 AM
To: wtr-general at rubyforge.org
Subject: [Wtr-general] Can Someone Explain This Pls... I Cant Find
TheReason...
I searched Archives & Did This To Download Files.. But its Now
Working...
Can You Pls Help Me Out wheres the Problem... The Save Button Is Not
Getting Clicked...
[code]require 'win32ole'
require 'watir'
include Watir
ie = IE.new
ie.goto('http://www.mozilla.com/en-US/firefox/all.html')
ie.link(:url, /lang=af/im).click
autoit = WIN32OLE.new('AutoItX3.Control')
autoit.Opt("WinTitleMatchMode", 2) autoit.WinWaitActive("File Download")
autoit.ControlClick("File
Download","","[CLASS:Button;TEXT:&Save;INSTANCE:2]")[/code]
Thanks In Advance... :)
_______________________________________________
Wtr-general mailing list
Wtr-general at rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
More information about the Wtr-general
mailing list