Hi,

In addition, I did use Firefox as the browser (not IE) ...so why does it have 
any thing related to these:
[ActiveXObject Error: no value for Msxml2.DOMDocument.6.0.] 
[ActiveXObject Error: no value for Msxml2.DOMDocument.3.0.] 
[ActiveXObject Error: no value for MSXML2.DOMDocument.] 
[ActiveXObject Error: no value for MSXML.DOMDocument.] 
[ActiveXObject Error: no value for Microsoft.XMLDOM.] 
???

Thanks,
Gina


----- Forwarded Message ----
From: Gina Nguyen <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, November 14, 2007 3:08:25 PM
Subject: Re: [Webtest] clickButton seems not working

Thanks, Marc.

I did pick up the htmlunit-1.14-SNAPSHOT.jar and drop it in the lib directory. 
I removed the original htmlunit-1.11.jar
...now, I got a different error 

BUILD FAILED
C:\WT\webtest.xml:145: The following error occurred while executing this line:
C:\WT\immTest\tests\allTests.xml:6: The following error occurred while 
executing this line:
java.lang.NoSuchMethodError: 
com.gargoylesoftware.htmlunit.html.HtmlPage.getAllHtmlChildElements()Lcom/gargoylesoftware/htmlunit/html/DomNode$DescendantElementsIterator;

Total time: 17 seconds

....when viewing the "class" file with notepad, I sort of seeing this method. 
What have I missed?

Thanks,
Gina


----- Original Message ----
From: Marc Guillemot <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, November 14, 2007 2:16:16 AM
Subject: Re: [Webtest] clickButton seems not working

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






      Be a better pen pal. 
Text or chat with friends inside Yahoo! Mail. See how.





      
____________________________________________________________________________________
Be a better sports nut!  Let your teams follow you 
with Yahoo Mobile. Try it now.  
http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ

Reply via email to