problem exec javascript

"Ivan Georgiev" <[email protected]>
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <[email protected]>
Hi
I have login page that submit with username and password ( no matter how,
with form.getRequest() or button.click() ), a result page have a javascript
like this:
...
<body>
<input id="myField" type="text" value="">
<script>
document.getElementById('myField').value="testValue";
</script>
</body>

after this a have a error:
TypeError: Cannot convert null to an object. (httpunit; )#
at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java
:597)#
at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java
:597)#
at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java
:557)#
at org.mozilla.javascript.NativeGlobal.typeError0(NativeGlobal.java:562)#
at org.mozilla.javascript.ScriptRuntime.setProp(ScriptRuntime.java:840)#
at org.mozilla.javascript.gen.c32.call(httpunit:0)#
at org.mozilla.javascript.gen.c32.exec(httpunit)#
......

I try many ways to submit my request but i'am afraid the problem is where
execute javascript expression in response page.
I'am using httpunit-1.6.2.

Thanks in advance.

_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.