Download capabilities from javascript code
"Antonio Javier Ortega Pérez" <[email protected]>
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi! I've been searching through the mailing list to see if is there any download capability. Although I've found something interesting it doesn't meet my requirements.Let me explain, I'm in the case where in an html page there is a button that calls some JavaScript, and that piece of code ends performing the call to do the download, then, i need support for run and interpret javascript code because is not at all possible to calculate a static URI nor obtain the resource via URL connection or typical tools. Now I have this: Button[] baSchDownResultButtons = wfSchDownResultForm.getButtons(); baSchDownResultButtons[4].click(); WebResponse wrRespCSV = wc.getCurrentPage(); where "baSchDownResultButtons[4]" has associated the javascript code that handles the download. But then i don't know how to obtain a InputStream or something that permits me obtain the final file. Thanks in advance. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV