From: David D. K. <ddk...@ki...> - 2005-05-18 03:39:01
|
Yes, HtmlUnit supports file upload forms. You do it by loading the web page through HtmlUnit, getting a reference to the object that represents the INPUT element of type="file", setting that object with a path to a known file, then getting a reference to the form (or the form's submit button), then submitting the form (calling the click() method on the button object). Dave On May 17, 2005, at 9:19 PM, Karl Stenerud wrote: > Here's a newbie question for you: > > Does HtmlUnit support file upload, and if so, how would I do it? |