Actually, I had a inscrutable error message from the WIN32OLE/AutoIT axis that I couldn't figure out.
I was only able to capture the msg. when running the AutoIt script in the Perl controller. -C On 10/20/05, Jeff Wood <[EMAIL PROTECTED]> wrote: > Actually, the problem is that you didn't tell AutoIT WHICH window to > send the RETURN to ... > > If you look at the documentation and the unit tests that are included > with Watir, you will see proper usage for AutoIT. > > j. > > On 10/20/05, Chris McMahon <[EMAIL PROTECTED]> wrote: > > Hi... > > I definitely have some sort of WIN32OLE vs AutoIt problem. I > > broke out the Perl controller to capture that particular error > > message. > > I gave up on AutoIt, I'm using Perl Win32::GuiTest and perl > > system(1,ruby.exe) for a controller. It's easy, it's bulletproof, and > > it works. > > > > -Chris > > > > ---------- Forwarded message ---------- > > From: Chris McMahon <[EMAIL PROTECTED]> > > Date: Oct 20, 2005 11:58 AM > > Subject: painfully stupid AutoIT question > > To: [email protected] > > > > > > This should work, right? > > > > ######################################### > > popup_thread = Thread.new { > > puts "entering popup thread" > > sleep 1 > > @autoit = WIN32OLE.new('AutoItX3.Control') > > @autoit.WinWait "", "" > > @autoit.Send "{ENTER}" > > puts Time.now > > } > > > > puts "clicking link" > > puts Time.now > > @ie.link(:id,"peskyPopupLink").click > > > > popup_thread.join #JUST IN CASE > > ####################################### > > > > popup_thread starts, returning control to the calling script > > Watir clicks peskyPopupLink > > popup_thread sleeps 1 second, cranks up AutoIt, attaches to top > > window, and hits the default button. > > > > But I don't think popup_thread ever completes. Output from this script is > > > > Started > > entering popup thread > > clicking link > > Thu Oct 20 11:53:51 Central Daylight Time 2005 > > > > leading me to believe that the "puts Time.now" in popup_thread is > > never executed. Any suggestions as to what I've done wrong are > > welcome... > > -Chris > > > > _______________________________________________ > > Wtr-general mailing list > > [email protected] > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > -- > "http://ruby-lang.org -- do you ruby?" > > Jeff Wood > > _______________________________________________ > Wtr-general mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/wtr-general > _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
