Hi,
I am facing problem while importing numeric data from excel sheet with data
driven.
However the numbers when given directly as input to the script it works fine.
for eg:
<setInputField name="applicant.homeAddress.zipCode" value="1234567"/>
But the numeric values are not printed in the application with the following
script.
<setInputField name="applicant.homeAddress.zipCode" value="${Zipcode}"/>
With this script the following error occurs:
[clickLink] WARN (com.gargoylesoftware.htmlunit.ScriptEngine) - warning: messag
e=[RHINO USAGE WARNING: Missed Context.javaToJS() conversion:
[clickLink] Rhino runtime detected object [EMAIL PROTECTED]
52: NOT_FOUND of class org.mozilla.javascript.UniqueTag where it expected String
, Number, Boolean or Scriptable instance. Please check your code for missing Con
text.javaToJS() call.] sourceName=[https://secure.idirect.net/n565/scripts/valid
ation.js] line=[2512] lineSource=[null] lineOffset=[0]
[clickLink] RHINO USAGE WARNING: Missed Context.javaToJS() conversion:
[clickLink] Rhino runtime detected object [EMAIL PROTECTED]
52: NOT_FOUND of class org.mozilla.javascript.UniqueTag where it expected String
, Number, Boolean or Scriptable instance. Please check your code for missing Con
text.javaToJS() call.
[clickLink] INFO (com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine) -
Caught script exception
[clickLink] ======= EXCEPTION START ========
[clickLink] EcmaError: lineNumber=[2513] column=[0] lineSource=[null] name=[Refe
renceError] sourceName=[https://secure.idirect.net/n565/scripts/validation.js] m
essage=[ReferenceError: "selectnode" is not defined. (https://secure.idirect.net
/n565/scripts/validation.js#2513)]
[clickLink] com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: "sele
ctnode" is not defined. (https://secure.idirect.net/n565/scripts/validation.js#2
513)
[clickLink] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$Htm
lUnitContextAction.run(JavaScriptEngine.java:512)
Thanks in Advance
Lavanya.
Bring your gang together - do your thing. Go to
http://in.promos.yahoo.com/groups