On 7/26/05, Scott Hanselman <[EMAIL PROTECTED]> wrote:
> 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()

I discovered this myself independently:  the way to handle popups is
in another thread.  Those unfamiliar with threads accomplish the same
thing by handling popups in another process altogether.   (Some silly
people have handled popups with an entirely different script running
in another scripting *language* altogether...)
-Chris

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

Reply via email to