|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Problem submitting a formHello All
I'm using HtmlUnit 2.6 and having some problems submitting a form. I'm getting no problems finding the form with getFormByName then find and filling in a couple of inputs with getInputByName and setValueAttribute. However there isn't a submit button instead there is the following .. <a onmouseout="status=' ';" onmouseover="status=' ';return true;" title="Log on" class="upushButton" name="Log on" onkeypress="csLogin('onLogin'); return false;" onclick="csLogin('onLogin'); return false;" href="javascript:void(0);"> Log on </a> My question is how do I create an object from the form which I can click on and thus submit the form ? Thanks for your time. Regards Ian ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Htmlunit-user mailing list Htmlunit-user@... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
|
|
Re: Problem submitting a formHi,
what about retrieving the node element for this link and calling click() on it? Cheers, Marc. Ian Wraith a écrit : > Hello All > I'm using HtmlUnit 2.6 and having some problems submitting a > form. I'm getting no problems finding the form with getFormByName then > find and filling in a couple of inputs with getInputByName and > setValueAttribute. However there isn't a submit button instead there > is the following .. > > <a onmouseout="status=' ';" onmouseover="status=' ';return true;" > title="Log on" class="upushButton" name="Log on" > onkeypress="csLogin('onLogin'); return false;" > onclick="csLogin('onLogin'); return false;" > href="javascript:void(0);"> Log on </a> > > My question is how do I create an object from the form which I > can click on and thus submit the form ? > > Thanks for your time. > > Regards > > Ian > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Htmlunit-user mailing list > Htmlunit-user@... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Htmlunit-user mailing list Htmlunit-user@... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
| Free embeddable forum powered by Nabble | Forum Help |