Micro Focus QTP (UFT) Forums
Pop up button and menu - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Pop up button and menu (/Thread-Pop-up-button-and-menu)



Pop up button and menu - Akpene - 05-16-2008

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?


******
Code:
Browser("Oracle BI Publisher").WinButton("To help protect your security,").Click 676,10,micRightBtn
Browser("Oracle BI Publisher").WinMenu("ContextMenu").Select "Download File..."
******