Customize how to identify objects

You can instruct LeanFT which identification properties to use for learning test objects in the Object Identification Center (OIC). This also affects how code is generated by the Test Recorder. For more information, see Test Recorder.

  1. In your IDE, click LeanFT > Engine and Object Identification Settings.

  2. In the Object Identification tab, you can specify two sets of properties:

    Tip: These object identification settings apply only on the computer where you configure them. If you plan to identify objects on other computers, you can use the Export and Import buttons to export the settings from the current computer, and import them on multiple computers.

    To ensure that all settings are properly preserved, configure the object identification using this dialog box only, and not via the XML file used in previous versions.

    • Identify by. These properties are always used when learning an object. In addition, the properties listed in the Identify by list are shown as the recommended properties when spying on an object.
    • Assist with. These properties are used only when the regular properties (shown in the Identify by list) are not enough to uniquely identify an object. In that case, LeanFT uses as few of the properties as necessary to get a unique description, according to the order in the list.
    • To select properties to use for identifying an object:

      1. Select the object on the left.
      2. On the right, drag properties from the Available properties list to the Identify by or Assist with property set.
      3. Save your changes.
  3. Restart the LeanFT runtime engine.

    After the LeanFT runtime engine restarts, the new object identification settings are applied every time you spy or learn objects in the OIC.

Tip: You can restore original test object identification settings by clicking the Restore button.

See also: