I need to save files from sites using HtmlUnit . I am currently browsing pages with several anchors that use javascript onClick()="DownloadAttachment('attachmentId')" to get the files. Files can be of almost any type (xls, doc, txt, pdf, jpg, etc.). So far I have not been able to find resources or examples showing how to save files using HtmlUnit . I mainly tried to get an AttachmentHandler to work for this, since it most likely works, but was unsuccessful. I was wondering if anyone else was able to upload files using HtmlUnit and can help?
TheBeeKeeper
source share