07-12-2010, 06:06 PM
Hi,
First add that image to object repository then use the below code
Now the context menu will open,if that is not getting identified properly by QTP, use low level recording we will get similar code which is given below..
hope this will solve your problem..
First add that image to object repository then use the below code
Code:
Set WshShell = CreateObject("WScript.Shell")
Browser("").Page("").Image("").Highlight
WshShell.SendKeys "+{F10}"
Now the context menu will open,if that is not getting identified properly by QTP, use low level recording we will get similar code which is given below..
Code:
'Press down arrow
Window("").WinObject("").Type micDwn
Window("").WinObject("").Type micDwn
Window("").WinObject("").Type micDwn
'Press on enter
Window("").WinObject("").Type micReturn
hope this will solve your problem..