Vince,
I tried this:
puts "Button 1: #{ie.buttons[1].name}
puts "Button 2: #{ie.buttons[2].name}
puts "Button 3: #{ie.buttons[3].name}
Got this output:
Button 1: search
Button 2: sfwq
E
The first button is a search function on the page.
The 2nd is the submit button for the regular form on the page.
I think the E means error, which means there are only two buttons on the
page.
This means to me that WATIR doesn't see the the element the brings up the
modal dialog
as a "button".
Paul
From: Vince <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
Subject: Re: [Wtr-general] hi and help with some javascript
Date: Thu, 21 Dec 2006 14:06:30 CST
Paul,
> I tried placing this line of code in my test, just to see what it would
> show:
>
> puts "Button 1: [EMAIL PROTECTED]"
The buttons array starts at index 1, not zero. ie.buttons[0] doesn't exist,
hence your error. You will also see similar behavior in the many other
object arrays such at links, divs, ect.
Try the code again with [1] and you should be fine. As much of a pain in
the back side the AJAX modals are, at least they aren't IE javascript
modals which aren't actually on the page itself and require you to fire an
outside script to deal with them since your testscript itself can't touch
them.
Hope this helps,
~Vince
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5830&messageID=16496#16496
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_________________________________________________________________
View Athletes Collections with Live Search
http://sportmaps.live.com/index.html?source=hmemailtaglinenov06&FORM=MGAC01
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general