Paul,
> Could you really have meant to write:
>
> "The links and inputs within those divs are NOT always on the page, ..."
I really wish that was the case, but alas it is not. Using the sample AJAX
modal box page that I mentioned in my first reply, you can "find" the buttons
from the modal long before you click the link to fire up the box. This is
because the div that we are calling a modal box is always on the page, but not
always visible.
See for yourself:
require 'watir'
ie = Watir::IE.new
ie.goto("http://ajax.asp.net/ajaxtoolkit/ModalPopup/ModalPopup.aspx")
puts "Button 1: #{ie.buttons[1].name}"
puts "Button 2: #{ie.buttons[2].name}"
If you only have one on the page, you should have no problem clicking the
button, setting the modal, and submitting it. If you have multiple and need to
validate that the correct one is showing (as I do), than you have a long day
ahead of you...
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5830&messageID=16328#16328
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general