chandra sekhar
2009-Feb-04 11:32 UTC
How do i select "OK" button on MS Internet Explorer Popup window
Hi 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 script. while executing the script, the "winclicker" is not clicking "OK" button on the popup window. can anybody help me on this.. def popupHandler(hwnd, popupWinButton) popupWindowTitle = "Microsoft Internet Explorer" popup = WinClicker.new popup.makeWindowActive(hwnd) popup.clickWindowsButton(popupWindowTitle, popupWinButton) @csvLogger.debug("Popup: " + popup.getStaticText_hWnd(hwnd).to_s + ": Clicked " + popupWinButton) end def checkForPopup(ie, popupWinButton,waitTime=POPUP_WAIT) hwnd = ie.enabled_popup(waitTime) if (hwnd) popupHandler(hwnd, popupWinButton) end end --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Julian Leviston
2009-Feb-04 13:41 UTC
Re: How do i select "OK" button on MS Internet Explorer Popup window
What''s winclicker? You haven''t explained everything you''re using. Ruby/ rails code is executed server side. A button click is usually client side. Blog: http://random8.zenunit.com/ Learn rails: http://sensei.zenunit.com/ On 04/02/2009, at 10:32 PM, chandra sekhar <chandu.ch29-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi > > 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 script. > > while executing the script, the "winclicker" is not clicking "OK" > button on the popup window. > > can anybody help me on this.. > > > > def popupHandler(hwnd, popupWinButton) > popupWindowTitle = "Microsoft Internet Explorer" > popup = WinClicker.new > popup.makeWindowActive(hwnd) > popup.clickWindowsButton(popupWindowTitle, popupWinButton) > @csvLogger.debug("Popup: " + > popup.getStaticText_hWnd(hwnd).to_s + ": Clicked " + popupWinButton) > end > > > def checkForPopup(ie, popupWinButton,waitTime=POPUP_WAIT) > hwnd = ie.enabled_popup(waitTime) > if (hwnd) > popupHandler(hwnd, popupWinButton) > end > end > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---