Jump to content

Recommended Posts

Posted

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!

Posted

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.

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
×
×
  • Create New...