I ended up having to put a sleep 2 in winClicker to get this to click the button.  At approximately line 299 in WinClicker.rb—this section:

 

         if d != -1

             makeWindowActive(hwnd)

     è    sleep 2

             clickButtonWithHandle(d)

         else

 

After I added this then it would click the specified button.

 

Hope this helps,

 

--Mark

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Charley Baker
Sent: Thursday, June 29, 2006 8:03 AM
To: [email protected]
Subject: Re: [Wtr-general] File Download Pop-Ups

 

Take a look at winClicker.rb, clickWindowsButton should work, something like this:
require 'watir/winClicker'
clicker = WinClicker.new
clicker.clickWindowsButton('File Download', 'Save')

-Charley

On 6/28/06, Andy Case <[EMAIL PROTECTED]> wrote:

Hi,

 

I get the following Pop-up from my application.

 

Is there a WATIR command that allows me to select the buttons below.

 

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


 

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

Reply via email to