Paul, We've got a few of these in one of our products, and they are more trouble than you may have realized...
Now, you may have to tinker a bit, as there is not a single implementation of modals with AJAX, but the way the AJAX modal boxes work in general is by making a hidden div visible, or vice versa. The links and inputs within those divs are always on the page, meaning that you cannot simply assume that if the input "exists?" that the button has successfully been clicked exposing the modal. Because you didn't have enough to worry about, the asynchronous AJAX calls also circumvent Watir's wait() method, meaning that you will have to look for other indicators to tell you if the postback has returned yet. A sample of the asp.net implementation of this modal type can be found here: http://ajax.asp.net/ajaxtoolkit/ModalPopup/ModalPopup.aspx The quickest and most effective way I was able to create tests for pages that utilize these modals was to have some help from the devs, and to make a lot of assumptions. This is pretty new territory for everyone, so good luck, and do share any tricks you come up with. --------------------------------------------------------------------- Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=5830&messageID=16306#16306 _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
