Micro Focus QTP (UFT) Forums
Controlling the Internet Explorer Information Bar. - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Controlling the Internet Explorer Information Bar. (/Thread-Controlling-the-Internet-Explorer-Information-Bar)



Controlling the Internet Explorer Information Bar. - oskar_schindlerus - 10-14-2009

Hi Everyone,

I know this topic has been discussed in a separate thread but the requirements here are a bit different.

I am testing an application that is being pushed over the web. (It is a Java Web Start application). Every time I click on the link that invokes the application, Internet Explorer prompts whether I need to download the file and I have to say "Yes".

There is no way I can turn off the setting without violating the security policy.

So the question is, can I send click on the "Download" option on the IE information bar via QTP? (The IE information bar is recognized as a WebBtn object)

If so, a short example might help.

Thanks,
- Oskar


RE: Controlling the Internet Explorer Information Bar. - oskar_schindlerus - 10-15-2009

OK So I have been able to solve the problem.

Code:
Browser("Information").Page("Information").Image("Login").Click
Browser("Information").WinButton("To help protect your security,").Click
Browser("Information").WinMenu("ContextMenu").Select "Download File..."
Browser("Information").Page("Page").Sync