Forum: Ruby How to handle windows pop ups

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C6ff2efc1160234128cf29ffa10efc32?d=identicon&s=25 Shweta (Guest)
on 2009-03-11 08:35
(Received via mailing list)
I have a button with name print Site Info after a click off this
button it opens another window with print dialog there i need to click
on print button.So i need to know how to handle such windows pop ups i
used the code something like this:   require 'win32ole'
wsh = WIN32OLE.new('Wscript.Shell')
wsh.SendKeys('Windows{ENTER}'). but its not working
This topic is locked and can not be replied to.