Here’s my implementation of a file downloader:
It uses selenium to get the download link and then downloads it through java using the apache commons library.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/F88SWHDAYloJ.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.
The usual ones are use something like auto it (Windows only) to click OK on any download dialogue that appears, or write a Java Robot (Or your own language equivalent) to interact with OS level dialogues.
Another option would be to convert what I have written into Python, I’m sure there must be some libraries similar to apache commons somewhere to make life easy, lets face it Python is a pretty big deal J
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/AvIgNCoRjE4J.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.
The only other thing I can think of is setting HTMLUnit up to auto download to a set location when a link is clicked (Like you can with FireFox). However I have no idea if HTMLUnit is capable of doing this or not.
If not you are probably looking at tweaking the HTMLUnit code which would then involve you pulling in your tweaked version of HTMLUnit into Selenium which means building a custom Selenium and using that in your tests. Would be a lot of work, however it would probably be useful for somebody else if committed back.
From: seleniu...@googlegroups.com [mailto:seleniu...@googlegroups.com] On Behalf Of Chris Osborn
Sent: 06 January 2012 23:32
To: seleniu...@googlegroups.com
Subject: Re: [selenium-users] Getting HTMLUnit to download files
Thanks again, Mark.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/tLhjs1aBb0EJ.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.