from http://webtest.canoo.com/webtest/manual/scriptStep.html
"Note: although scriptStep does support JavaScript, at the moment, it doesn't provide the mechanism to call JavaScript functions in your HTML pages under test." Dierk > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Acc Mera > Sent: Donnerstag, 28. Juni 2007 3:25 > To: [email protected] > Subject: [Webtest] Using javascript with canoo Webtest for simulating > keyDown > > > Hi, > > I am trying to use <scriptStep language="javascript"> with Canoo to > simulate keyboard Enter key press, but stuck :( > > What is the correct way to do this? > > Here is the code used and the error detail: > > .... > <setInputField > description="enter text" > name="name" > value="#{yourname}"/> > > <scriptStep language="javascript"> > item = document.getOneHtmlElementByAttribute('input', > 'name', 'name'); > item.keyDown(13); > </scriptStep> > .... > > This gives error message > FAIL at com.canoo.webtest.engine.StepExecutionException: Error > invoking script: org.mozilla.javascript.EcmaError: TypeError: Cannot > find function keyDown., Step: Script > > > All ideas/suggestions are welcome. > > Thanks > Acc Mera > _______________________________________________ > WebTest mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/webtest _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

