How do we download a file by using Selenium?
Asked
Active
Viewed 2,878 times
0
-
1I answered to a similar question: http://stackoverflow.com/q/11653293 – Giorgio Bozio Jul 25 '12 at 15:37
-
possible duplicate of [Verifying file download with Selenium](http://stackoverflow.com/questions/8306736/verifying-file-download-with-selenium) – Favonius Aug 28 '12 at 08:39
1 Answers
2
Selenium doesn't recognize windows based components and hence would not interact with "Save As" dialog boxes. To do that you need to use a 3rd party tool that would handle these dialog boxes. I would suggest using AutoIt. Its a free script writing tool and will handle all the dialog boxes. For more info, visit http://qtp-help.blogspot.com/2009/07/selenium-handle-dialogs.html
Let me know if you are looking for something else.
Regards,
Vamyip

vamyip
- 1,161
- 1
- 10
- 35
-
1AutoIt is my tool of choice as well! I posted example script in this question: http://stackoverflow.com/questions/5827387 – Aaron Silverman Apr 30 '11 at 18:02
-
For X11 - (for example Linux, but no only), checkout [xdotool by Jordan Sissel](http://www.semicomplete.com/projects/xdotool/), cause "tool lets you simulate keyboard input and mouse activity, move and resize windows, etc." – Grzegorz Wierzowiecki Sep 26 '11 at 09:47