From: Biju A. <bij...@ya...> - 2003-12-08 19:48:18
|
I tried with both the form.submit() and button.click() method but it doesn't make any difference on the output. I have also code which works for simple form submission but this particular page which I sent, having problem with HTML Unit. I guess HTML Unit automatically load the java script so the source code for the java script is not important in this context, as my whole aim to fill out the log in form and submit to the server. I want to automate the login of a thid party web site through HTML Unit, for acceptnace testing, I don't have any control over the source for the page, except viewing source. Thanks, Biju Arjunan --- Mike Bowler <mb...@Ga...> wrote: > I'm about to head into a meeting so I don't have > much time to look at > this but I did notice that you are calling submit > directly on the form > instead of clicking on the submit button. This will > not cause the > submit button to be sent back to the server and may > cause different results. > > The example is also incomplete as you reference > javascript methods that > aren't included here. Can you reduce the sample to > a smaller one? > > I have lots of code that does simple form submission > so it certainly > does work. We just need to find out what is > different in this sample > and trying to reduce it would be a good step towards > that. > > -- > Mike Bowler > Principal, Gargoyle Software Inc. > Voice: (416) 822-0973 | Email : > mb...@Ga... > Fax : (416) 822-0975 | Website: > http://www.GargoyleSoftware.com > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux > Tutorials. > Become an expert in LINUX or just sharpen your > skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the > bash shell to sys admin. > Click now! > http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ |