From: Ronald B. <rb...@rb...> - 2014-04-15 20:00:26
|
Hi Uli, i can only guess. I see no form and the button you press is of type button (not submit) that usually only triggers javascript code. There is a good chance, that this js code at least opens a new window and does some more magic like Ajax. So you first have to understand what is really going on when clicking the button. With this info we can check what the reason for your problem migth be. RBRi On Tue, 15 Apr 2014 04:52:12 -0700 (PDT) UliScherrer wrote: > >Hi, >when I click in a GUI Browser on InputButton (Submit) another Windows opens >and shows a Pdf. > ><div id="viewAndDownloadIntlInvoiceDialogLiteCsv" >class="dialogWithTitleAndButtons"> > <div class="dialogTitle" > > View/Download Invoice Data > </div> > <div class="dialogContent"> > <p>Please select a file format to view/download your invoice.</p> > <input type="radio" name="format" value="pdf" checked="checked"/>PDF > <input type="radio" name="format" value="csv" />UPS Billing Data (.csv >format, 250 data elements) > </div> > <div class="dialogButtons"> > <input type="button" >id="viewAndDownloadIntlInvoiceDialogLiteCsvCancelBtn" class="bSwan" >value="Cancel"/> > <input type="button" >id="viewAndDownloadIntlInvoiceDialogLiteCsvSubmitBtn" class="bSwan" >value="Submit"/> > </div> ></div> > > > >In HtmlUnit (2.14) I dont get the Pdf. >HtmlButtonInput submit = >myPage.getHtmlElementById("viewAndDownloadIntlInvoiceDialogLiteCsvSubmitBtn"); >Page rslt = submit.click(); >WebResponse response = rslt.getWebResponse(); > >response shows the loaded html-page. > >What is going wrong? > >Cheers >Uli > > > > >-- >View this message in context: http://htmlunit.10904.n7.nabble.com/Does-not-get-file-when-InputButton-clicked-tp33583.html >Sent from the HtmlUnit - General mailing list archive at Nabble.com. > >------------------------------------------------------------------------------ >Learn Graph Databases - Download FREE O'Reilly Book >"Graph Databases" is the definitive new guide to graph databases and their >applications. Written by three acclaimed leaders in the field, >this first edition is now available. Download your free book today! >http://p.sf.net/sfu/NeoTech >_______________________________________________ >Htmlunit-user mailing list >Htm...@li... >https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |