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.
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:
- There may be certain ways to avoid the “download” window being opened in the first place, for example: http://elementalselenium.com/tips/2-download-a-file
- 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: https://github.com/MicroFocus/robodriver
- 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: https://www.microfocus.com/products/silk-portfolio/silk-test/