From: Patrick Spence Date: 2007-02-09T23:02:34+09:00 Subject: Re: Ajax woes alex_f_il@hotmail.com wrote: > I don't think it is possible with current WATIR implementation. > You can also try SWExplorerAutomation SWEA (http:\\webiussoft.com). > SWEA supports AJAX and eleminates "sleep" statements by monitoring > network traffic and DOM changes - it improves the test automation code > reliability and performance. SWEA is .Net framework, but can be used > from Ruby using RubyCLR. Thanks for the link, but I was hoping for a Ruby solution. I was thinking that it's possible to override the Watir::Element.assert_exists() method. Perhaps go into a loop, on each iteration of the loop checking @ieController.status for "done" and/or @ieController.document.readyState == 4. The loop would one run a specific number of times before exiting and letting Watir throw the error. Using the scenario I previously mentioned regarding the blood pressure radio button and textbox controls... I've noticed that when the "I know my blood pressure" radio button is clicked, the IE status bar briefly changes to "Please wait..." while Ajax is doing it's thing. By "doing it's thing" I mean updating the page to display 2-textbox controls where the user inputs the systolic and diastolic reading. After the textboxes are displayed, the status changes back to "Done". Ideas or hints anyone? Thanks! -- Posted via http://www.ruby-forum.com/.