Hi,

support for ActiveX DOMDocument has been first introduced since release
1.13 of HtmlUnit. You can try to pick the latest snapshot from Build
Artifacts in http://build.canoo.com/htmlunit/ (build >= 498) to replace
your htmlunit-1.13.jar. You can choose to run your tests simulating
Firefox rather than IE but for the tests you have I recommend you to
pick up a recent snapshot of HtmlUnit in this case too.

Marc.
-- 
Blog: http://mguillem.wordpress.com

Gina Nguyen wrote:
> Hi,
> 
> I'm using webtest to test a JSF page with AJAX and Rich Faces that has a
> "Search" button. I only did a simple search without much of filtering. I
> meant the search criteria have "default" values. From the tomcat
> logging. There is one row of data return to be displayed but the webtest
> gives me error and does not want to display the page. Here is the error:
> [clickButton]  INFO
> (com.canoo.webtest.steps.request.AbstractTargetAction) - -> gotoTarget
> by clickButton with name: QueryOutboundTransForm:_id36
> [clickButton]  INFO (com.canoo.webtest.steps.request.ClickButton) - ->
> findTarget(by input): name=QueryOutboundTransForm:_id36 value=Search
> [clickButton] ERROR (com.gargoylesoftware.htmlunit.ScriptEngine) -
> runtimeError: message=[ActiveXObject Error: no value for
> Msxml2.DOMDocument.6.0.]
> sourceName=[http://localhost:8080/gaindevhub1/a4j_3_1_1-SNAPSHOTorg.ajax4jsf.javascript.AjaxScript.jsf]
> line=[3] lineSource=[null] lineOffset=[0]
> [clickButton] ERROR (com.gargoylesoftware.htmlunit.ScriptEngine) -
> runtimeError: message=[ActiveXObject Error: no value for
> Msxml2.DOMDocument.3.0.]
> sourceName=[http://localhost:8080/gaindevhub1/a4j_3_1_1-SNAPSHOTorg.ajax4jsf.javascript.AjaxScript.jsf]
> line=[3] lineSource=[null] lineOffset=[0]
> [clickButton] ERROR (com.gargoylesoftware.htmlunit.ScriptEngine) -
> runtimeError: message=[ActiveXObject Error: no value for
> MSXML2.DOMDocument.]
> sourceName=[http://localhost:8080/gaindevhub1/a4j_3_1_1-SNAPSHOTorg.ajax4jsf.javascript.AjaxScript.jsf]
> line=[3] lineSource=[null] lineOffset=[0]
> [clickButton] ERROR (com.gargoylesoftware.htmlunit.ScriptEngine) -
> runtimeError: message=[ActiveXObject Error: no value for
> MSXML.DOMDocument.]
> sourceName=[http://localhost:8080/gaindevhub1/a4j_3_1_1-SNAPSHOTorg.ajax4jsf.javascript.AjaxScript.jsf]
> line=[3] lineSource=[null] lineOffset=[0]
> [clickButton] ERROR (com.gargoylesoftware.htmlunit.ScriptEngine) -
> runtimeError: message=[ActiveXObject Error: no value for
> Microsoft.XMLDOM.]
> sourceName=[http://localhost:8080/gaindevhub1/a4j_3_1_1-SNAPSHOTorg.ajax4jsf.javascript.AjaxScript.jsf]
> line=[3] lineSource=[null] lineOffset=[0]
> [clickButton]  INFO (com.canoo.webtest.steps.Step) - Running with: Canoo
> Webtest: R_1551.
> [clickButton]  INFO (com.canoo.webtest.steps.Step) - Exception thrown
> from this class: com.canoo.webtest.engine.StepFailedException
> [clickButton]  INFO (com.canoo.webtest.steps.Step) - Message was:
> JavaScript error loading page
> http://localhost:8080/gaindevhub1/QueryOutboundTrans.jsf: Could not
> retreive a valid progID of Class: Microsoft.XMLDOM. (original exception:
> null)
> (http://localhost:8080/gaindevhub1/a4j_3_1_1-SNAPSHOTorg.ajax4jsf.javascript.AjaxScript.jsf#3)
>  INFO (com.canoo.webtest.steps.Step) - Running with: Canoo Webtest: R_1551.
>  INFO (com.canoo.webtest.steps.Step) - Exception thrown from this class:
> com.canoo.webtest.engine.StepFailedException
>  INFO (com.canoo.webtest.steps.Step) - Message was: JavaScript error
> loading page http://localhost:8080/gaindevhub1/QueryOutboundTrans.jsf:
> Could not retreive a valid progID of Class: Microsoft.XMLDOM. (original
> exception: null)
> (http://localhost:8080/gaindevhub1/a4j_3_1_1-SNAPSHOTorg.ajax4jsf.javascript.AjaxScript.jsf#3)
>  INFO (com.canoo.webtest.steps.Step) - Running with: Canoo Webtest: R_1551.
>  INFO (com.canoo.webtest.steps.Step) - Exception thrown from this class:
> com.canoo.webtest.engine.StepFailedException
>  INFO (com.canoo.webtest.steps.Step) - Message was: JavaScript error
> loading page http://localhost:8080/gaindevhub1/QueryOutboundTrans.jsf:
> Could not retreive a valid progID of Class: Microsoft.XMLDOM. (original
> exception: null)
> (http://localhost:8080/gaindevhub1/a4j_3_1_1-SNAPSHOTorg.ajax4jsf.javascript.AjaxScript.jsf#3)
> 
> Any explanation?
> 
> Thanks,
> Gina
> 
> 
> ------------------------------------------------------------------------
> Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See
> how. <http://us.rd.yahoo.com/evt=51732/*http://overview.mail.yahoo.com/>


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

Reply via email to