[Webtest] Exception with setInputField
Tim Miller
webtest@lists.canoo.com
Tue, 11 Oct 2005 11:17:17 -0700
Hi Marc,
I upgraded WebTest to R_1006 and ran this test again. I believe it is
the same problem. I'll post the exception from the report. What is the
timeframe for upgrading to a new version of htmlunit?
Thanks,
Tim
Exception
com.canoo.webtest.engine.StepExecutionException
Exception
Unexpected exception caught:
com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot set
property "value" of undefined to "true"
(/edgedynamics/portal/js/param_util.js#2)
Stacktrace
com.canoo.webtest.engine.StepExecutionException: Unexpected exception
caught: com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot
set property "value" of undefined to "true"
(/edgedynamics/portal/js/param_util.js#2), Step: SetInputField at
C:\home\qauser01\ApplicationTests\Suite-p3.0-a3.0\common\setParameterTab
leFieldSteps.xml:8: with (value=3D"false", description=3D"Set the =
parameter
table field", name=3D"txt0_1", stepType=3D"setInputField")
at
com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:454)
at
com.canoo.webtest.steps.AbstractBrowserAction.handleUnexpectedException(
AbstractBrowserAction.java:122)
at com.canoo.webtest.steps.Step.execute(Step.java:148)
at com.canoo.webtest.engine.Engine.executeSteps(Engine.java:30)
at
com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:74)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleChe
ckExecutor.java:37)
at
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleChe
ckExecutor.java:37)
at
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut
or.java:40)
at
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.Main.start(Main.java:150)
at org.apache.tools.ant.Main.main(Main.java:240)
-----Original Message-----
From: webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com] On Behalf Of Marc Guillemot
Sent: Monday, October 10, 2005 11:51 PM
To: webtest@lists.canoo.com
Subject: Re: [Webtest] Exception with setInputField
I guess that you have a js creating dynamically an input field and that=20
the version of htmlunit you use has problem with it. I think that it has
been fixed in htmlunit but I'm not sure if this has been integrated in=20
webtest. Try first to upgrade webtest to the latest build. If the=20
problem persists, then it will be time for me to put a new build of=20
htmlunit into webtest.
Marc.
Tim Miller wrote:
> The problem I am having is that I get an exception with JavaScript=20
> enabled. The exception goes away if I disable JavaScript but I need to
> have JavaScript enabled in order to click the save button. I am using=20
> WebTest R825. Any ideas about this exception?
> ...
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest