0

How do we download a file by using Selenium?

gogo
  • 19
  • 1
  • 4

1 Answers1

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
  • 1
    AutoIt 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