Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to automate Right click on image?
#1
Not Solved Question 
How to automate Right click on image to set certain actions like saving the picture.
Reply
#2
Not Solved
Do sendkeys help ?
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#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


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,408 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,005 04-15-2008, 12:40 AM
Last Post: poona13

Forum Jump:


Users browsing this thread: 1 Guest(s)