Why do folks do all this tricky stuff with Winclicker and starting new
instances of the ruby process? 

I do this:

   Thread.new { sleep 0.1; WindowHelper.new.push_alert_button }
   ie.link(:id, "whatever").click #this causes an Alert()

and it works great. Am I doing something silly?

Scott

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hue Mach Dieu
Sent: Tuesday, July 26, 2005 6:54 PM
To: [email protected]
Subject: [Wtr-general] RE: Click OK button on Popup Dialog?


Hi
I change the startClicker() a little bit, I work fine

def startClicker(objected, button , waitTime = 3)

  w = WinClicker.new

  longName = objectIE.dir.gsub("/" , "\\" )
  
  ....
End

....
And I use it as..

ie = IE::new
startClicker (ie, "OK", 3)


#Then I click the button that produces the popup.

ie.frame("rightframe").frame("search").button(:name, "Submit").click

Hope useful

Hue




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

Reply via email to