05-16-2008, 11:14 PM
I am trying to save a file from a BI Publisher window. I'm able to do it manually without any problems but once I get QTP to do the same thing I get a pop-up button displayed just below the Publisher with text below.
"To help protect your security, Internet Explorer blocked this site from downloading files to your computer. Click here for options…"
I set IE Security options to the ff but none helped:
1) disable Automatic prompting for file downloads
2) enable File download
3) Allow scripting of browser control
4) Added current web address to the Trusted sites
5) Allow pop-ups
I then placed a check in qtp code to look out for pop-up button and follow instructions to download the file as follows but qtp can't find the "Download File" button. It gets displayed after the right click but disappears right after before the step to click it.
How do I make the small dialog persistent long enough so qtp will see it or is there another IE setting to prevent pop-up?
******
******
"To help protect your security, Internet Explorer blocked this site from downloading files to your computer. Click here for options…"
I set IE Security options to the ff but none helped:
1) disable Automatic prompting for file downloads
2) enable File download
3) Allow scripting of browser control
4) Added current web address to the Trusted sites
5) Allow pop-ups
I then placed a check in qtp code to look out for pop-up button and follow instructions to download the file as follows but qtp can't find the "Download File" button. It gets displayed after the right click but disappears right after before the step to click it.
How do I make the small dialog persistent long enough so qtp will see it or is there another IE setting to prevent pop-up?
******
Code:
Browser("Oracle BI Publisher").WinButton("To help protect your security,").Click 676,10,micRightBtn
Browser("Oracle BI Publisher").WinMenu("ContextMenu").Select "Download File..."