Forum: Ruby on Rails How do i select "OK" button on MS Internet Explorer Popup window

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
chandra sekhar (Guest)
on 2009-02-04 13:55
(Received via mailing list)

I am chandra sekhar, i am new to Ruby..

i got stucked when i am executing one program..i have defined the Pop-Up
function in one class, and i am calling this Pop-up function at main

while executing the script, the "winclicker" is not clicking "OK" button
the popup window.

can anybody help me on this..

       def popupHandler(hwnd, popupWinButton)
          popupWindowTitle = "Microsoft Internet Explorer"
          popup =
          popup.clickWindowsButton(popupWindowTitle, popupWinButton)
          @csvLogger.debug("Popup: " +
popup.getStaticText_hWnd(hwnd).to_s +
": Clicked " + popupWinButton)

        def checkForPopup(ie, popupWinButton,waitTime=POPUP_WAIT)
        hwnd = ie.enabled_popup(waitTime)
           if (hwnd)
                popupHandler(hwnd, popupWinButton)
Julian L. (Guest)
on 2009-02-04 15:41
(Received via mailing list)
What's winclicker? You haven't explained everything you're using. Ruby/
rails code is executed server side. A button click is usually client

Learn rails:

On 04/02/2009, at 10:32 PM, chandra sekhar 
This topic is locked and can not be replied to.