form button.click() problem with javascript
"Karl Blum" <[email protected]>
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Message-ID | <69FE5255C0279840BF8AACEC0B23164701630884@EXGBGMB02.europe.cellnetwork.com> |
I have a form with a submit button (javascript submit action) and when
clicking on the button, it does not submit the form.
WebForm form = resp.getFormWithName("vorm");
form.setParameter("a", 1);
form.setParameter("b", 2);
form.getButtons()[0].click(); //only one button in the form, so
this is correct
resp = session.getCurrentPage(); // resp stays the same after
click.
Could this be a problem operating with javascript with httpunit. I have
known errors in this site's javascript, although this does not interfere
the submit button action.
Karl
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop