jamesdfagan89 Posted April 24, 2014 Share Posted April 24, 2014 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! Link to comment Share on other sites More sharing options...
jamesdfagan89 Posted April 24, 2014 Author Share Posted April 24, 2014 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. Link to comment Share on other sites More sharing options...
Unc3nZureD Posted April 24, 2014 Share Posted April 24, 2014 I rather suggest using ControlSend. It's more reliable. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now