Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to automate Right click on image?
#3
Not Solved
Hi,

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..
Reply


Messages In This Thread
RE: How to automate Right click on image? - by Arun Prakash - 07-12-2010, 06:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how can i click on perticular pixels of image of Flash file chetan-24 0 1,404 12-24-2008, 05:31 PM
Last Post: chetan-24
  Trying to click on image which is a part of WebElement with Tag 'NOBR' poona13 0 2,001 04-15-2008, 12:40 AM
Last Post: poona13

Forum Jump:


Users browsing this thread: 1 Guest(s)