i am using HTMLUNit to set the value of a form hidden element as below.
HtmlHiddenInput hidden = (HtmlHiddenInput) page.get("someid");
hidden.setValueAttribute(seriesName);
But this does not work as expected and throw an castException.
I have div element like follows
<div class="myclass">
<form:hidden id="someid" htmlEscape="true"/>
</div>
How can i set the value for that hidden form id using HTMLUNIT. Thanks.