Note that there are some explanatory texts on larger screens.

plurals
  1. PODownload File Dialog
    primarykey
    data
    text
    <p>I'm using Selenium with my CI system to automatically test my various applications, one of which is a web form with a downloadable copy of our answers (as a dynamically generated PDF). The test is to assert the downloadable PDF file contains the correct answers (answers given on the webform). My problem is trying to handle the download dialog to retrieve the PDF file (asserting the contents of the PDF are correct is outside the scope of this question).</p> <p>I've spent a while looking around on ways to handle it, the few things I've found of any relevance was <a href="http://www.autoitscript.com/site/autoit/" rel="nofollow">AutoIT</a>, changing the default downloads location &amp; making the browser download files automatically, and just <a href="http://ardesco.lazerycode.com/index.php/2012/07/how-to-download-files-with-selenium-and-why-you-shouldnt/" rel="nofollow">asserting the link works without downloading the file</a>. Unfortunately, my situation rules out all three possibilities.</p> <ol> <li>I am using a variety of browsers (ruling out the automatic downloads as some browsers do not support this).</li> <li>I am using a variety of platforms (ruling out AutoIT, a Windows only application).</li> <li>The content within the PDF is dynamically generated based on previous interactions with the application, the test is to assert whether the content generated matches the expected values, so just checking if the link exists is not enough.</li> </ol> <p>Because the download dialog being presented is managed by the OS, I'm not sure whether it is possible to use Selenium for what I intend, however I thought I would ask first to see if anyone does know any solutions using Selenium, or instead can recommend some other acceptable means of testing?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload