Micro Focus QTP (UFT) Forums
problem in automationg security popup - 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: problem in automationg security popup (/Thread-problem-in-automationg-security-popup)



problem in automationg security popup - vijay44 - 02-18-2010

Hi.
My application has a button to download files.
For security purpose, there is a popup that bloacks from downloading, instead asks before downloading the file.
i want to select the option: "Download file"
Code:
Browser("micclass:=Browser").WinButton("text:=To help protect your security.*").Click 604,8,micRightBtn
Browser("micclass:=Browser").WinMenu("text:=ContextMenu","index:=0").Select "Download File..."
It gives object description error, cannot identify winmenu, and selected item in the collection.
i cannot use objectspy here as the context menu disappears when the cursor is moved.
Any help will be really appreciated.
Regards;
Vijay


RE: problem in automationg security popup - Jackomcnabb - 02-18-2010

Can you record the actions, if so go to the object repository then get object description from there and you should then be able to code


RE: problem in automationg security popup - devanggoel - 02-19-2010

hi
first if u want to handle the popup in run condition then u can use the Recovery Scenario...
now object description error, cannot identify winmenu error occurs in case of not finding the correct property of the actual object so u have to check the property....and as u say that u can't use the object spy...no probs...u can record all the steps by qtp and take the property from OR...................