How to get Tooltip for an item listed in a Javatree ?
Question ID: 108384
1
0

I am trying to get the Tooltip for an item that is listed in a JavaTree. I was able to capture the Tooltip by creating an insight object. However, I can’t seem to find a way for UFT to display the tooltip when I’m running the test.

Marked as spam
Posted by (Questions: 26, Answers: 0)
Asked on May 7, 2018 2:46 pm
190 views
Answers (1)
1
Private answer

I use the following code to get a tooltip for an item listed. I hope it helps.

javawindow(''Window'').JavaTree(''JTree'').Select ''tree1;value''

set selectPath = javawindow(''Window'').JavaTree(''JTree'').object.getSelectionPath()

set rect = javawindow(''Window'').JavaTree(''JTree'').Object.getPathBounds(selectPath)

x = cint(rect.x)

y = cint(rect.y)

javawindow(''Window'').JavaTree(''JTree'').FireEvent micMouseMove ,50, 0,x, y, 1, ''OFF''

Marked as spam
Posted by (Questions: 0, Answers: 27)
Answered on May 7, 2018 4:27 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top