Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Right click on the javaobject
#1
Not Solved
in one operation I have to rightclick on the javaobject I tried below approaches but didnt work.
1.
Code:
JavaWindow("").JavaObject("").GetROProperty("x")
y = JavaWindow("").JavaObject("").GetROProperty("y")
JavaWindow("").JavaObject("").Click x,y,"RIGHT"
2.Used absolute x,y instead of normal still doesnt work fine.

Please provide solution.
Reply
#2
Not Solved
Try this :-

Code:
Set SelectionPath = Javawindow("").JavaObject("").Object.GetSelectionPath()
Set rect = Javawindow("").JavaObject("").Object.GetPathBounds(SelectionPath)
x=rect.x
y=rect.y
Javawindow("").JavaObject("").Click Cstr(x),Cstr(y),"RIGHT"
Reply
#3
Not Solved
I am getting error 'Object does not support this property or method ' for the code .
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  javaobject reddyraam10 1 2,052 02-08-2017, 01:11 AM
Last Post: reddyraam10
  Right Click On a Image and Click on a Link in WebElement RameshKrishnan 4 5,494 07-10-2013, 04:13 PM
Last Post: RameshKrishnan
  How do I left click on the right click menu in WinTreeView? RandomGrin 0 3,958 12-22-2012, 04:22 AM
Last Post: RandomGrin
  How do I left click on the Right click menu? RandomGrin 2 4,287 12-18-2012, 09:47 PM
Last Post: RandomGrin

Forum Jump:


Users browsing this thread: 1 Guest(s)