I'm surprised that this works. I would expect the click method to still block.
In head, there is click_no_wait, which is a non-blocking click.
Bret
On 1/27/06, Paatsch, Bernd <[EMAIL PROTECTED]> wrote:
Okay :) I fiqured it out. Here is my code.ie2.button(:name, add.wacTagAdd).getOLEObject.clickw = WinClicker.new()
w.clickWindowsButton("Microsoft Internet Explorer", "OK" , maxWaitTime=30 )
w = nil
ie2.close
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Paatsch, Bernd
Sent: Thursday, January 26, 2006 3:32 PM
To: '[email protected]'
Subject: Re: [Wtr-general] Order of execution / button().click?The code line I try to execute is:
<INPUT class=rec_butt TYPE='submit' NAME='b_Add_' VALUE='Add' TITLE='Add' >
As you can see it clicking the button is executing an onclick event. I replaced my code withie.button(:name, add.wacTagAdd).fire_event("onclick")w = WinClicker.new()
#("#32770", "Microsoft Internet Explorer",
handle = w.getWindowHandle("Microsoft Internet Explorer")
puts handle
w.makeWindowActive(handle)
w.clickWindowsButton_hwnd(handle,"OK")and as I can see it is firing the event. However now the popup is not coming up.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Paatsch, Bernd
Sent: Thursday, January 26, 2006 2:46 PM
To: '[email protected]'
Subject: Re: [Wtr-general] Order of execution / button().click?To clarify. After clicking the button IE tries to load the new web page but then I have a windows popup ontop waiting for an confirmation.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Paatsch, Bernd
Sent: Thursday, January 26, 2006 2:23 PM
To: '[email protected]'
Subject: [Wtr-general] Order of execution / button().click?Hello,
I run into following issue: After I click a button on the web page a popup window opens waiting for user action. However the script is waiting indefinitely for the button.click to finish, that itself waits for the popup window to be take care of.
Is there a workaround?
Code sample
ie.button(:name, add.wacTagAdd).click
Puts "It never reaches the puts!"
Thanks
_______________________________________________
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
