Sign in to follow this  
Followers 0
jamesdfagan89

Firefox download dialog automation

3 posts in this topic

Hey all,

Complete beginner here. I work with Selenium WebDriver and am running into issues when download dialog boxes pop up after clicking on web buttons or links. After a couple of hours of googling I cant seem to find an implementation that actually works. This: http://qtp-help.blogspot.com/2009/07/selenium-handle-dialogs.html seemed pretty detailed but is outdated and does not work for the new style download dialog that has radio buttons for the user to choose between opening and saving the file. Would appreciate any help, especially if you can explain what each line of code is doing since I am genuinly interested in getting into AutoIT.

 

Thanks!

Share this post


Link to post
Share on other sites



For anyone curious about this, it was insanely easy to do. All I did was give it:


send("{RIGHT}")
Send("{ENTER}")

The Right send moves the radio button from open to Save, and Enter just clicks the OK button.

Share this post


Link to post
Share on other sites

I rather suggest using ControlSend. It's more reliable.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0