Please brief me about the Ajax testing with selenium RC. As in Ajax element not reflect on the view-source, but using firebug we can see the changes in HTML source code.
I got help on this from one article and with help of @Hannibal
http://agilesoftwaretesting.com/?p=111
JQuery: “jQuery.active”
Prototype: “Ajax.activeRequestCount”
Dojo: “dojo.io.XMLHTTPTransport.inFlight.length”
So if there is Ajax call we can use second option.
selenium.waitForCondition(
"selenium.browserbot.getCurrentWindow().jQuery.active == 0",
timeout);