Hi Marc,
When i call the javascript:loginsubmit , it works but when i try to  call the 
Javascript:treeAction it says the same error javascript page loading

<clickLink href="javascript:loginSubmit();"/>
<clickLink 
href="sessionhandler.do?urlParam=../ar11/applicationreview.do?appId=183%26appType=4"/>
<clickLink href="javascript:treeAction('SQ-1.1')"/>

Stack Error 

C:\Program Files\webtest>webtest -buildfile simpletest.xml
"C:\Program Files\Java\jdk1.6.0_03\bin\java.exe" -Xms64M -Xmx256M -cp "C:\Progra
m Files\webtest\bin\..\lib\ant-launcher.jar" -Dant.library.dir="C:\Program Files
\webtest\bin\..\lib" "-Dlog4j.configuration=file:/C:\Program Files\webtest\bin\.
.\lib/log4j.properties" org.apache.tools.ant.launch.Launcher -nouserlib -lib "C:
\Program Files\webtest\bin\..\lib\build;C:\Program Files\webtest\bin\..\lib\buil
d\clover.jar" -buildfile simpletest.xml
Buildfile: simpletest.xml
     [echo] DEPRECATED since November 2007: use webtest.xml instead of lib/taskd
ef.xml!
     [echo] DEPRECATED since November 2007: use webtest.xml instead of lib/class
path.xml!

main:
  [webtest]  INFO (com.canoo.webtest.ant.WebtestTask) - Starting webtest "Simple
Test" (C:\Program Files\webtest\simpletest.xml:12: )
  [webtest]  INFO (com.canoo.webtest.ant.WebtestTask) - Canoo Webtest: R_1645.
   [config]  WARN (com.canoo.webtest.engine.Configuration) - Result dir 'webtest
-results' not created (may not be needed), may cause problems if individual step
s set save attribute
   [config]  INFO (com.canoo.webtest.engine.Configuration) - Surfing with browse
r 4.0 (compatible; MSIE 6.0; Windows 98)
    [steps]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: steps (1/6)
   [invoke]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: invoke "Get
the page: Forms Direct" (1/6)
   [invoke]  INFO (com.canoo.webtest.steps.request.TargetHelper) - getting respo
nse for url: https://secure.idirect.net/ar11/change-of-address.jsp
   [invoke]  INFO (com.canoo.webtest.steps.request.TargetHelper) - Using custom
initializer: com.canoo.webtest.security.SunJsseBaseConnectionInitializer
   [invoke]  INFO (com.canoo.webtest.security.SunJsseBaseConnectionInitializer)
- Installing HostnameVerifier
   [invoke]  WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected conte
nt type of text/javascript or application/x-javascript for remotely loaded javas
cript element https://secure.idirect.net/ar11/scripts/scripts.js but got [applic
ation/javascript]
   [invoke]  WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected conte
nt type of text/javascript or application/x-javascript for remotely loaded javas
cript element https://secure.idirect.net/scripts/repeater.js but got [applicatio
n/javascript]
   [invoke]  WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected conte
nt type of text/javascript or application/x-javascript for remotely loaded javas
cript element https://secure.idirect.net/scripts/utils.js but got [application/j
avascript]
   [invoke]  WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected conte
nt type of text/javascript or application/x-javascript for remotely loaded javas
cript element https://secure.idirect.net/scripts/validation.js but got [applicat
ion/javascript]
   [invoke]  INFO (com.gargoylesoftware.htmlunit.javascript.host.Document) - Add
ed cookie: __utma=137848626.1146871929.1197454090.1197454090.1197454090.1
   [invoke]  INFO (com.gargoylesoftware.htmlunit.javascript.host.Document) - Add
ed cookie: __utmb=137848626
   [invoke]  INFO (com.gargoylesoftware.htmlunit.javascript.host.Document) - Add
ed cookie: __utmc=137848626
   [invoke] ERROR (com.gargoylesoftware.htmlunit.ScriptEngine) - runtimeError: m
essage=[ActiveXObject Error: no value for ShockwaveFlash.ShockwaveFlash.10.] sou
rceName=[https://ssl.google-analytics.com/urchin.js#379(eval)] line=[1] lineSour
ce=[null] lineOffset=[0]
   [invoke] ERROR (com.gargoylesoftware.htmlunit.ScriptEngine) - runtimeError: m
essage=[ActiveXObject Error: no value for ShockwaveFlash.ShockwaveFlash.9.] sour
ceName=[https://ssl.google-analytics.com/urchin.js#379(eval)] line=[1] lineSourc
e=[null] lineOffset=[0]
   [invoke] ERROR (com.gargoylesoftware.htmlunit.ScriptEngine) - runtimeError: m
essage=[ActiveXObject Error: no value for ShockwaveFlash.ShockwaveFlash.8.] sour
ceName=[https://ssl.google-analytics.com/urchin.js#379(eval)] line=[1] lineSourc
e=[null] lineOffset=[0]
   [invoke] ERROR (com.gargoylesoftware.htmlunit.ScriptEngine) - runtimeError: m
essage=[ActiveXObject Error: no value for ShockwaveFlash.ShockwaveFlash.7.] sour
ceName=[https://ssl.google-analytics.com/urchin.js#379(eval)] line=[1] lineSourc
e=[null] lineOffset=[0]
   [invoke] ERROR (com.gargoylesoftware.htmlunit.ScriptEngine) - runtimeError: m
essage=[ActiveXObject Error: no value for ShockwaveFlash.ShockwaveFlash.6.] sour
ceName=[https://ssl.google-analytics.com/urchin.js#379(eval)] line=[1] lineSourc
e=[null] lineOffset=[0]
   [invoke] ERROR (com.gargoylesoftware.htmlunit.ScriptEngine) - runtimeError: m
essage=[ActiveXObject Error: no value for ShockwaveFlash.ShockwaveFlash.5.] sour
ceName=[https://ssl.google-analytics.com/urchin.js#379(eval)] line=[1] lineSourc
e=[null] lineOffset=[0]
   [invoke] ERROR (com.gargoylesoftware.htmlunit.ScriptEngine) - runtimeError: m
essage=[ActiveXObject Error: no value for ShockwaveFlash.ShockwaveFlash.4.] sour
ceName=[https://ssl.google-analytics.com/urchin.js#379(eval)] line=[1] lineSourc
e=[null] lineOffset=[0]
   [invoke] ERROR (com.gargoylesoftware.htmlunit.ScriptEngine) - runtimeError: m
essage=[ActiveXObject Error: no value for ShockwaveFlash.ShockwaveFlash.3.] sour
ceName=[https://ssl.google-analytics.com/urchin.js#379(eval)] line=[1] lineSourc
e=[null] lineOffset=[0]
   [invoke] ERROR (com.gargoylesoftware.htmlunit.ScriptEngine) - runtimeError: m
essage=[ActiveXObject Error: no value for ShockwaveFlash.ShockwaveFlash.2.] sour
ceName=[https://ssl.google-analytics.com/urchin.js#379(eval)] line=[1] lineSourc
e=[null] lineOffset=[0]
   [invoke]  INFO (com.gargoylesoftware.htmlunit.javascript.host.Document) - Add
ed cookie: __utmz=137848626.1197454090.1.1.utmccn=(direct)|utmcsr=(direct)|utmcm
d=(none)
   [invoke]  INFO (com.canoo.webtest.engine.WebClientContext) - Content of windo
w changed to https://secure.idirect.net/ar11/change-of-address.jsp (text/html)
   [invoke]  INFO (com.canoo.webtest.engine.WebClientContext) - Content loaded i
n newly opened window, its content will become current response
   [invoke]  INFO (com.canoo.webtest.engine.WebClientContext) - Current form set
 to none
   [invoke]  INFO (com.canoo.webtest.engine.WebClientContext) - Current response
 now: https://secure.idirect.net/ar11/change-of-address.jsp
[setInputField]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setInput
Field (2/6)
[setInputField]  INFO (com.canoo.webtest.engine.WebClientContext) - Current form
 set to (action=signin.do)
[setInputField]  INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Foun
d 1 suitable fields, considering only the first one
[setInputField]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setInput
Field "Set password field password: 123456" (3/6)
[setInputField]  INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Foun
d 1 suitable fields, considering only the first one
[clickLink]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: clickLink (4
/6)
[clickLink]  INFO (org.apache.commons.httpclient.HttpMethodDirector) - Redirect
requested but followRedirects is disabled
[clickLink]  WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected conte
nt type of text/javascript or application/x-javascript for remotely loaded javas
cript element https://secure.idirect.net/ar11/scripts/repeater.js but got [appli
cation/javascript]
[clickLink]  WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected conte
nt type of text/javascript or application/x-javascript for remotely loaded javas
cript element https://secure.idirect.net/ar11/scripts/utils.js but got [applicat
ion/javascript]
[clickLink]  WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected conte
nt type of text/javascript or application/x-javascript for remotely loaded javas
cript element https://secure.idirect.net/ar11/scripts/validation.js but got [app
lication/javascript]
[clickLink]  WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected conte
nt type of text/javascript or application/x-javascript for remotely loaded javas
cript element https://secure.idirect.net/ar11/scripts/scripts.js but got [applic
ation/javascript]
[clickLink]  INFO (com.canoo.webtest.engine.WebClientContext) - Content of windo
w changed to https://secure.idirect.net/ar11/startapplication.do (text/html)
[clickLink]  INFO (com.canoo.webtest.engine.WebClientContext) - Content of curre
nt window changed, it will become current response
[clickLink]  INFO (com.canoo.webtest.engine.WebClientContext) - Current form set
 to none
[clickLink]  INFO (com.canoo.webtest.engine.WebClientContext) - Current response
 now: https://secure.idirect.net/ar11/startapplication.do
[clickLink]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: clickLink (5
/6)
[clickLink]  INFO (org.apache.commons.httpclient.HttpMethodDirector) - Redirect
requested but followRedirects is disabled
[clickLink]  INFO (org.apache.commons.httpclient.HttpMethodDirector) - Redirect
requested but followRedirects is disabled
[clickLink]  WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected conte
nt type of text/javascript or application/x-javascript for remotely loaded javas
cript element https://secure.idirect.net/ar11/scripts/repeater.js but got [appli
cation/javascript]
[clickLink]  WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected conte
nt type of text/javascript or application/x-javascript for remotely loaded javas
cript element https://secure.idirect.net/ar11/scripts/utils.js but got [applicat
ion/javascript]
[clickLink]  WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected conte
nt type of text/javascript or application/x-javascript for remotely loaded javas
cript element https://secure.idirect.net/ar11/scripts/validation.js but got [app
lication/javascript]
[clickLink]  INFO (com.canoo.webtest.engine.WebClientContext) - Content of windo
w changed to https://secure.idirect.net/ar11/controller.do?interaction=sq&firstP
age=AR-11 (text/html)
[clickLink]  INFO (com.canoo.webtest.engine.WebClientContext) - Content of curre
nt window changed, it will become current response
[clickLink]  INFO (com.canoo.webtest.engine.WebClientContext) - Current form set
 to none
[clickLink]  INFO (com.canoo.webtest.engine.WebClientContext) - Current response
 now: https://secure.idirect.net/ar11/controller.do?interaction=sq&firstPage=AR-
11
[clickLink]  INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: clickLink (6
/6)
[clickLink]  WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected conte
nt type of text/javascript or application/x-javascript for remotely loaded javas
cript element https://secure.idirect.net/ar11/scripts/repeater.js but got [appli
cation/javascript]
[clickLink]  WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected conte
nt type of text/javascript or application/x-javascript for remotely loaded javas
cript element https://secure.idirect.net/ar11/scripts/utils.js but got [applicat
ion/javascript]
[clickLink]  WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected conte
nt type of text/javascript or application/x-javascript for remotely loaded javas
cript element https://secure.idirect.net/ar11/scripts/validation.js but got [app
lication/javascript]
[clickLink]  INFO (com.gargoylesoftware.htmlunit.javascript.host.Document) - Add
ed cookie: wolf2status=started
 INFO (com.canoo.webtest.engine.WebClientContext) - Responses restored
 INFO (com.canoo.webtest.ant.WebtestTask) - Finished executing webtest "SimpleTe
st" (C:\Program Files\webtest\simpletest.xml:12: )
 INFO (com.canoo.webtest.ant.WebtestTask) - No report to write according to conf
ig

BUILD FAILED
C:\Program Files\webtest\simpletest.xml:28: JavaScript error loading page https:
//secure.idirect.net/ar11/controller.do?interaction=sq&firstPage=AR-11: Wrapped
com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot set property "v
alue" of null to "" (https://secure.idirect.net/ar11/scripts/utils.js#811) (http
s://secure.idirect.net/ar11/scripts/validation.js#2604)




      Forgot the famous last words? Access your message archive online at 
http://in.messenger.yahoo.com/webmessengerpromo.php

Reply via email to