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