| || |
- 1 Post By dlai
How to focus opened PDF file & how to save it...
I got an problem with PDF file using selenium web driver. While downloading pdf report with selenium in IE, PDF file is automatically opened. I don't know how to focus on PDF file & how to save it.
Please help if anyone has new thoughts.
Selenium cannot interact with desktop applications like Adobe Reader, just browsers. You would have to make use of AutoIT.
Selenium - Users - Downloading a file with Right click option.
Selenium has issues with downloads and interacting and things outside of the page context such as plugins (like adobe reader plugin).
What I'd recommend you do is test the actual content generation separately using a integration unit test. The actual content of the PDF is actually a low risk on an end to end level once the integration unit testing for the content generation is in place. Then you are free to use Adobe's wonderful APIs which is alot easier to work with than trying to automate adobe reader.
I like the way you think, dlai.
Thanks everyone for your support.