Hi,
(1) this point should be fixed if you use for instance latest sources
from htmlunit from its svn.
(2) prototype still cause problem to htmlunit. Current version from
htmlunit's SVN goes further than the place where you currently got an
error but support is still not complete. Maybe you're lucky and the
"part" of prototype you use already works.
Marc.
Padma latha wrote:
Hi there:
Our nightly automation cycle using Canoo, is failing off late with
various errors relating to JavaScript. We tried to fix it, by using
couple of options such as 'disable JavaScript', and enabling it after
the <invoke> step
but no success.
Without using 'disable JavaScript' option, typical error would vary
b/w (1) & (2) below:
(1)
#com.canoo.webtest.engine.StepFailedException: Step[invoke "Navigate
to Main Page" (1/2)]: Script error loading page executing webtest at:
invoke TypeError: Cannot find function attachEvent.
(http://localhost:8081/example/theme/dojo.js#856)
(2)
#Element.addMethods();, Step: InvokePage at
/ws/mycws/Tonga/SunOS.sparc/EditableList_Main/TheTest.xml:4: with (resu
ltFilename="ResultsPage_1172174970569_invoke.html", taskName="invoke")
# at
com.canoo.webtest.steps.request.TargetHelper.protectedGoto(TargetHelper.java:105)
# at
com.canoo.webtest.steps.request.AbstractTargetAction.gotoTarget(AbstractTargetAction.java:106)
# at
com.canoo.webtest.steps.request.AbstractTargetAction.doExecute(AbstractTargetAction.java:78)
# at com.canoo.webtest.steps.Step.execute(Step.java:106)
# at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
# at org.apache.tools.ant.Task.perform(Task.java:364)
# at
com.canoo.webtest.ant.TestStepSequence.executeSteps(TestStepSequence.java:43)
# at
com.canoo.webtest.ant.TestStepSequence.doExecute(TestStepSequence.java:31)
# at com.canoo.webtest.steps.Step.execute(Step.java:106)
# at org.apache.tools.ant.Task.perform(Task.java:364)
# at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:164)
# at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
# at org.apache.tools.ant.Task.perform(Task.java:364)
# at org.apache.tools.ant.Target.execute(Target.java:301)
# at org.apache.tools.ant.Target.performTasks(Target.java:328)
# at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
# at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
# at org.apache.tools.ant.Main.runBuild(Main.java:632)
# at org.apache.tools.ant.Main.startAnt(Main.java:183)
# at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
# at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
#
#Total time: 6 minutes 6 seconds
#com.canoo.webtest.engine.StepFailedException: Step[invoke "Navigate to
Main Page" (1/2)]: Script error loading page executing webtest at:
invoke TypeError: Cannot read property "prototype" from null
(http://localhost:8081/example/theme/META-INF/prototype/prototype.js#1320)
After checking on google, we got couple of similar issues being posted
of which one suggested to comment out certain section of prototype.js
to be able to run successfully. This is something which we cannot do,
and I learn that there's a similar issue with HtmlUnit, doesnt support
prototype.js/*js?
Could you pls help us find a workaround/amicable tool that we could
think of before venturing into re-writing the whole test series?
Any suggestions would of great help
Thanks in advance
Latha.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest