Lothar Märkle <[EMAIL PROTECTED]> writes:

> ...
> Sorry, but I don't understand the consequences or how this affects
> webtest:)
> Are the modifications that are done to the originially fetched page
> (in AJAX with element.innerHTML = "responseXML") availabe
> to the following steps?

if you use an AJAX response to set innerHTML, you will surely use
XMLHttpRequest.responseText and not XMLHttpRequest.responseXML. Indeed innerHTML
must receive text and not an other object. This is already working fine with
webtest/htmlunit and you can already test pages this way, where modifications
are done reading the responseText property.
What is not yet working is responseXML. XMLHttpRequest is badly named because
xml is juste an option: it can receive pure text. In some cases you have
programmed your server to really send you xml back and want to process it as an
xml DOM and not just the text representation of the DOM.
Ex.
myXMLHttpRequest.responseXML.childNodes[0]

This is was it not yet working. There are already 2 bug reports concerning this
issue on htmlunit:
http://sourceforge.net/tracker/index.php?func=detail&aid=1415496&group_id=47038&atid=448266
http://sourceforge.net/tracker/index.php?func=detail&aid=1377638&group_id=47038&atid=448266

Marc.

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to