Setting hidden param value in Httpunit 1.7

Help
2009-01-16
2013-04-26
  • Hi

    I was a user of httpunit 1.6.Now i just upgraded to 1.7.
    Earlier for setting the hidden parameter value i used

    cartForm.getScriptableDelegate().set(hiddenParamname, hiddevparamValue);

    Now there is no such function in 1.7 and hence i used

    cartForm.getScriptableObject().setParameterValue(hiddenParamname, hiddevparamValue);

    But it's showing exception.

    java.lang.ClassCastException: com.meterware.httpunit.scripting.ScriptableDelegate$1 cannot be cast to com.meterware.httpunit.scripting.FormScriptable

    Can anyone help me.
    Thanks in advance.

    Regards
    Mathew