[Webtest] webtest and java script capability

webtest@lists.canoo.com webtest@lists.canoo.com
Wed, 19 Apr 2006 13:33:07 +0200 (CEST)


Hi,

I have problems to enable java script capability of
webtest. I tried these two tags:

<option name="JavaScriptEnabled" value="true"/>

<enablejavascript enable="true"/>

but the result stays the same. The underlying HtmlUnit
doesnt activate java script. I would appreciate any hints.

Br,
Christian


 <webtest name="xxx Browser Test">
      <config
        host="xxx"
        port="xxx"
        protocol="https"
        basepath="xxx"
        summary="true"
    	saveresponse="true"
    	resultpath="C:/APPS/webtest/reporterTest/webtest-results">
    	<option name="JavaScriptEnabled" value="true"/>
    	</config>

      <steps>
      	<enableJavaScript enable="true"/>
	<invoke description="get Login Page" url="KPIBrowser.do" />
	 <verifyTitle description="login title" text="Login Page"/>
	<not>
	<verifyElementText type="noscript" regex="true" text="In your browser,
JavaScript is disabled.*"/>
	</not>

      </steps>
    </webtest>