Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Right click on java text in QTP
#1
Not Solved
Hello ,

I have a java tree and various options under it to choose from ..I have to right click on java text under this java tree. When i record QTP gives following code:
Code:
JavaWindow("Management").JavaTree("ApplianceTree").Select "root;All;172.25.12.45"
JavaWindow("Management").JavaTree("ApplianceTree").Click 96,22,"RIGHT"

But value 96 and 22 vary and test case fails at times.
How can i get the absolute location to click?

I was trying to use following code but was not successful:
Code:
Set pathObj = (JavaWindow(" Management").JavaObject("JScrollPane").Select  "root;All;xxx.xx.xx.xx")
Set obj = CreateObject("Mercury.DeviceReplay")
getX = pathObj.....  
'trying to get x and y coordinated and get to use right click method but getObj does not come with any function so that i can click on text and do right click

Can anyone suggest me the code to use? I am stuck
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need to Validate Text filed is blank after clicking on the Text box balak89 3 4,974 09-13-2015, 12:06 AM
Last Post: ADITI1992
  Not able to click text inside the grid dropdown szkapoo 6 4,728 12-20-2014, 09:43 PM
Last Post: supputuri
  I am trying to extract text from a webelement but it is generating blank text scenari excellentpawan 2 4,752 08-13-2013, 08:37 PM
Last Post: excellentpawan
  Right Click On a Image and Click on a Link in WebElement RameshKrishnan 4 5,478 07-10-2013, 04:13 PM
Last Post: RameshKrishnan
  How do I left click on the right click menu in WinTreeView? RandomGrin 0 3,954 12-22-2012, 04:22 AM
Last Post: RandomGrin

Forum Jump:


Users browsing this thread: 1 Guest(s)