Don’t get confused by the name, it is very similar to Object Spy in UFT which you are already aware of. Object Identification Center or OIC lets you spy on object from your application and provides you all different properties of that object for you to explore the best one to use. In this post we will see how Object Identification Center can be used for LeanFT projects.

Features of Object Identification Center

OIC allows you to do the below activities

  • Spy on an object
  • Highlight an Object
  • Generate test object description code
  • Capture object image
  • Add objects in application model

Spy on an Object

To launch OIC from IntelliJ, follow the menu option “LeanFT > Object Identification Center”. You can also launch it in standalone mode from “ Start Menu > HPE Software>…”

Make sure you have done the settings and extensions setup for browser, before spying on an object. Refer our last post on Setting up LeanFT and Browser Extensions.


Click on Spy button and point to the object you want to spy and release mouse. all properties and methods will be visible into Object Identification Center window.


Simple and Edit mode

Object Identification Center runs in two modes

Simple Mode:  allows you to just view the object properties and values

Edit Mode: allows you to view and edit the object properties and values

Click the Switch to Simple/Edit Mode  toggle button to switch to the desired mode.

 Highlight an Object

In Simple mode, you can explore and spy objects in your application, and view the properties and values that LeanFT captures. In this mode, the Highlight  button highlights the captured object in the application.

To refine a test object description, you must be in Edit mode. When you click Highlight  in Edit mode, LeanFT tries to validate the selected test object description, looking for a unique match. If multiple matches are found, the OIC returns a message with the number of matches and highlights the matches in the application. For a robust and maintainable test object description, the aim is to experiment with the test object properties to achieve a unique description.


 Generate test object description code

After spying an object, you can generate code for that object and paste in your script. Before generating the code, make sure you have selected the correct object in the hierarchy, and click on the “Generate Code to Clipboard” button.

Capture an Image of an Object

You can capture an image of the object in your application that corresponds to the currently selected object in OIC hierarchy tree, and save the image for future reference. To capture the image, click on “ Capture the Image” button and save the file.


Add objects in the application model

To add objects in application model, you must launch OIC from Application Model. At the bottom of the OIC, click the Add object  pop-up button and select Add or Locate.

Add : In simple mode , All starred objects that do not yet exist in the listed application model are added. While in Edit mode, The object that is in focus is added, as well as any checked parent objects that do not yet exist in the application model.

Locate : If a test object in the listed application model matches the description the OIC is using, the application model opens and that object is selected in the model. If you checked an object and one or more parents, the OIC first looks for the parent objects, and then tries to locate the selected test object only within the specified parent objects.

Customizing OIC Window

Click on the settings button on the OIC toolbar.


Theme: Select to display OIC window with a light or dark theme.

In Simple mode, add Page objects to the Application Model: When working with Web applications, select this option to include the Page object in the hierarchy when adding an object to the application model.

Clipboard Code Language: By default, the Generate code to clipboard option generates test object code in the language that matches the IDE you are working in. By selecting an alternative language here, you can share test object code with LeanFT testers who are working in other languages.

Keep on top while spying: Keeps the OIC window in front of other applications during a spy



Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.