Highlighted
Established Member..
Established Member..
1198 views

Identifying a Node within a Java Tree

Is it possible to identify a node within a Java tree  using the nodeID  property?

0 Likes
1 Reply
Highlighted
Absent Member.
Absent Member.

Re: Identifying a Node within a Java Tree

Hi,

I assume that the nodeID property is a native property of the object. You might be able to use it to select a node if there is some native method which uses the nodeID property to perform the selection. It is possible to access the native methods through .Object UFT method. For example, if a selectNodeByID(nodeID) native method exists in your object, you could call it through:

<ObjectHierarchy>.JavaTree("treeName").Object.selectNodeByID(nodeID)

To view the native methods, you can use UFT object spy clicking the "Native" radiobutton and "Operations" tab. If you need further help and the Java tree class is standard, could you please share the value of the JavaTree object class_path property?

Kind Regards,

Francisca

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.