I searched, but did not find a reference to this as an exisiting problem with WebTest - though I have seen reference to similar problems on the Appfuse forum at java.net.
I'm using Struts2 and just added a bit of Dojo so I can use the "<s:TabbedPanel" control. Now I get this when WebTest runs (build R_1600). Caused by: /Users/rnmixon/ProjectSource/acme/src/test/resources/login.xml:5: JavaScript error loading page http://localhost:7981/acme-0.7-SNAPSHOT/userHome.html: TypeError: Cannot read property "0" from undefined (http://localhost:7981/acme-0.7-SNAPSHOT/struts/dojo/dojo.js#7585), Step: ClickButton at /Users/rnmixon/ProjectSource/acme/src/test/resources/login.xml:5: with (resultFilename="response_1207852394164_clickbutton.html", taskName="clickbutton") at com.canoo.webtest.steps.request.TargetHelper.protectedGoto(TargetHelper.java:107) 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:104) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) 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:104) 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: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(SingleCheckExecutor.java:37) at org.apache.tools.ant.Project.executeTargets(Project.java:1068) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382) ... 23 more I believe its complaining about this snippet of Javascript code in dojo.js. The snipped begins with line7581, so the offending line is 4 lines down ("while((_70b=atts[i++])){ "), I believe: this.parseAttributes=function(node){ var _709={}; var atts=node.attributes; var _70b,i=0; while((_70b=atts[i++])){ if((dojo.render.html.capable)&&(dojo.render.html.ie)){ if(!_70b){ continue; } if((typeof _70b=="object")&&(typeof _70b.nodeValue=="undefined")||(_70b.nodeValue==null)||(_70b.nodeValue=="")){ continue; } } var nn=_70b.nodeName.split(":"); nn=(nn.length==2)?nn[1]:_70b.nodeName; _709[nn]={value:_70b.nodeValue}; } return _709; }; }; I've played with a number of variations setting up the djConfig properties array - to no success. Questions; 1. Can anyone suggest a fix or work around for this? 2. Is it something that moving to HtmlUnit 2.0 might fix? I've seen the JIRA issue addressing this for WebTest, but after quickly trying to substitute HtmlUnit 2.0 myself, can see its not a drop-in replacement for 1.13. Thank you - Richard -- View this message in context: http://www.nabble.com/%22missing-%7D-after-property%22-when-testing-page-with-Dojo-initialization.-tp16615450p16615450.html Sent from the WebTest mailing list archive at Nabble.com. _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

