sivanagamahesh Absent Member.
Absent Member.

Explain the Selenium Web Driver Cancelling Firefox Downloads?



I'm endeavoring to wipe out the fly up download windows in Firefox with selenium. I can switch windows and close ready windows, however, I can't choose the download window. Any thoughts?

Glancing around, it appears Selenium RC can't do deal with the download window since they rely upon the OS. Be that as it may, is this issue the same for the Selenium Web Driver? I know an answer for this should be possible with autoit, yet I'd get a kick out of the chance to keep everything in Java selenium if conceivable.



1 Reply
Micro Focus Expert
Micro Focus Expert

RE: Explain the Selenium Web Driver Cancelling Firefox Downloads?

Hi! From what I know I’d say that limitation applies to Selenium/WebDriver as well. A couple of ideas on that topic:

  1. There may be certain ways to avoid the “download” window being opened in the first place, for example:
  2. Our team open sourced a small WebDriver extension called robodriver last year, which wraps features of AWT/Robot behind the WebDriver facade to give users a cleaner API to work with – maybe that’s worth exploring for you:
  3. Of course the commercial Silk Test tool has a more convenient way of working with native browser windows like the download dialog, which can be combined nicely with “plain Selenium” as well. Check out the product page for more details:

Best regards,

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.