Micro Focus QTP (UFT) Forums

Full Version: How QTP records context menu in .net GUI applications
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi
I am trying to capture the right click menu of an object which is a part of tree view but not able to do it
I tried sendkeys but still not working

Code:
'set WshShell = CreateObject("WScript.Shell")
'WshShell.SendKeys"{APPKEY}"
'WshShell.SendKeys "{DOWN}"
'WshShell.SendKeys "{DOWN}"
'WshShell.SendKeys "{DOWN}"
'WshShell.SendKeys "{ENTER}"

Please Help
Is the tree object identified ? If yes, you may have to use the user32.dll to simulate the mouse right click action.