tags:

views:

1207

answers:

3

I wrote test case to click on download button. How to go to download confirmation pop up window and select save or open option, and click ok and come back to main window. I am using selenium-python script for web test automation.

+1  A: 

Selenium can't control the download confirmation. It can, however, type a file path directly in to the file upload field if you're using a "privileged" browser mode for IE or Firefox. If you're using the default *iexplore and *firefox modes with Selenium RC 1.0 beta 2, try simply type a file path directly in to the form field. I do this myself and it works great.

Patrick Lightbody
A: 

Hi Patrick,

I tried to type a file path directly to an input file control, but it is failed. Please share me your code to do that.

Thank,

LIB

A: 

The only way I workarounded this is by using the Robot to simulate the keyboard...

gogo