I am working on a html with selenium. After clicking the last link, pop up comes which says as save a file.
using selenium I am recording all the events and then generating the selenium RC script.
I want to know that how to get the pop up file from code using python?
Asked
Active
Viewed 1,966 times
0

self
- 2,634
- 3
- 16
- 15
2 Answers
1
In the case of saving a file, you can get around the popup box by configuring the options of your browser profile. See this answer for an explanation using Firefox. General idea is that you need to tell Firefox itself to not prompt when saving files of certain types. Note that this will result in the file being saved somewhere, but you can also control where it goes in case you want to delete the file (or handle it separately in Python).

Community
- 1
- 1

RocketDonkey
- 36,383
- 7
- 80
- 84
0
Webdriver cannot communicate with the browser modal popup. But this can be done, check out the below link for your answer
http://blog.codecentric.de/en/2010/07/file-downloads-with-selenium-mission-impossible/

Amey
- 8,470
- 9
- 44
- 63