Micro Focus QTP (UFT) Forums

Full Version: problem in automationg security popup
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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
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...................