Is range.wacTagAdd the name of the button? I see
below, NAME='b_Add_' as the name attribute -- should 'b_Add_' be
the value instead? Should your name
value be in single quotes? If you do all this, could you get rid of the
getOLEObject part?
Also: someone should whisper to your programmers that
NAME= is invalid XHTML; attributes should be lowercase. Uppercase
attributes are permitted in HTML 4.01, but lowercase is recommended. It
would be interesting to know if it made a difference to your script in any
way.
---Michael B.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paatsch, Bernd
Sent: January 27, 2006 6:08 PM
To: '[email protected]'
Subject: Re: [Wtr-general] clickWindowsButton (help :)
Does
anybody know why my script gets stuck at "ie2.button(:name,
range.wacTagAdd).getOLEObject.click"?
puts "before ie2.button \n"
ie2.button(:name, range.wacTagAdd).getOLEObject.click #it gets stuck at this point.
puts "never reaches this line \n
"
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paatsch, Bernd
Sent: Friday, January 27, 2006 2:21 PM
To: '[email protected]'
Subject: [Wtr-general] clickWindowsButton (help :)
Alright, until now everything worked just fine. But I
run into an situation where I have two popup window open and both have an "OK"
button.
Window("#32770", "Microsoft Internet Explorer", 1).Window("Button", "OK",
1) "
Window("#32770", "Microsoft
Internet Explorer", 1).Window("Button", "OK", 1)
"
As you can see they are identical. The difference lies
within what they display.
Window("#32770", "Microsoft Internet Explorer",
1).Window("Static", "[5207 - 5307] 11 Subscribers Is this OK?",
2)
Window("#32770", "Microsoft
Internet Explorer", 1).Window("Static", "{123} DUPLICATE Extension,
Personal ID or System ID", 2)
IS there a way to
specify what OK button to click based on the text in the
window?
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Paatsch, Bernd
Sent: Friday, January 27, 2006 8:52 AM
To: '[email protected]'
Subject: Re: [Wtr-general] Order of execution / button().click?
Sent: Friday, January 27, 2006 8:52 AM
To: '[email protected]'
Subject: Re: [Wtr-general] Order of execution / button().click?
Okay :) I fiqured it out. Here is my
code.
ie2.button(:name,
add.wacTagAdd).getOLEObject.click
w =
WinClicker.new()
w.clickWindowsButton("Microsoft Internet Explorer", "OK" , maxWaitTime=30 )
w = nil
ie2.close
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
with
ie.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
