From: UliScherrer <uli...@gm...> - 2014-04-15 11:52:21
|
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. |