https://github.com/Ardesco/Ebselen/blob/master/ebselen-core/src/main/java/co
m/lazerycode/ebselen/customhandlers/FileDownloader.java
It uses selenium to get the download link and then downloads it
programmatically using the apache commons library.
--
You received this message because you are subscribed to the Google Groups
"webdriver" group.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to
webdriver+...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/webdriver?hl=en.
--
This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.
If you have received this email in error please notify postm...@ardescosolutions.com
I normally work in *nix environments, but the implementation below should be
cross browser/cross OS.
Hi Mark,
If you have received this email in error please notify postm...@ardescosolutions.com
In my opinion pulling in another automation framework just to click on one
button is a bit OTT.
Don't get me wrong Sikuli looks good and I have used AutoIt before to great
effect, but If you are going to write scripts for a different automation
framework why bother with Selenium at all? You may as well do all of your
automation in in your selected framework rather than have a cobbled together
solution that selects bits and pieces of multiple automation frameworks.
The OCD in me shudders at the though of something glued together with a
mixture of <yourLanguageOfChoice>, shell scripts, batch files, and (in my
opinion) misuse of build servers.
-----Original Message-----
From: webd...@googlegroups.com [mailto:webd...@googlegroups.com] On
Behalf Of David
Sent: 25 January 2012 06:22
To: webdriver
Subject: [webdriver] Re: Handling Firefox Download Window
https://github.com/msanders/autopy
--
I'm not suggesting that you should use my solution for anything other than
Java. You could rewrite the solution in <YourLanguageOfChoice>, it should
be fairly simple to do something similar with most languages. The other
option from a Java point of view would be to write a robot class to interact
with the GUI, but again it's a very complex solution for the requirements.
I'm a big believer of KISS (Keep It Simple Stupid) and lets face it if you
have a hyperlink that is enabled and links to a file there is really no
difference in clicking on the link and letting the browser download it and
effectively doing a wget on the url. I do wonder why people want to do so
many download tests, do they actually look at the files they download (I'll
bet most people don't) or do they just want to know that something is there
to download? If you want to know the link exists on the server you don't
even need to download it, you can just request it and ensure that you get a
valid http response. Not downloading the whole thing would probably make
your tests faster waste less bandwidth, reduce your diskspace requirements
and maybe even save the odd kitten!
So after the above mini rant why did I write the downloader function?
I wrote the linked function so that I can download excel files and open them
up and programmatically check the data in them (some sites I have tested
have offered an excel download of the tabular data displayed on the screen,
so I would download the excel file and check that the data in the file
matches the data on the screen), I suspect many people wanting the download
functionality don't do anything like this.
IMHO the default position for download tests should be don't bother, it's
not actually giving you anything worthwhile. It may make somebody who is
technically inept gasp in wonder that you have managed to download 1GB of
files from the test webserver automatically, but what has it actually told
you as a tester and what extra confidence has it given your devs?
If you have received this email in error please notify postm...@ardescosolutions.com
--
This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.
If you have received this email in error please notify postm...@ardescosolutions.com