Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. On Object Spy toolbar, click the Settings icon.
    You can use the keyboard shortcut Ctrl+F10 to open the Settings dialog.
    The Locator Priority Settings window appears.
    1. Click Up/Down buttons to changes the priorities of the locator type.
    2. Click Restore Default to restore the default priorities.
    3. Click Cancel to discard changes.
    4. Click Ok to apply the changes.

...

Based on the preferred locator types, Object Spy looks for name property of the desired object. If it is not found it looks for the next preferred locator type which is for example ID. If it is not found, it then derives Xpath by referring to other native properties of the object or even of a parent if required. This is typically required in a case of duplicate objects. For more information on duplicate objects refer to the Challenging Situations in Object Identification and Remedies /wiki/spaces/QASWM/pages/407404959 section.

When Object Spy overrides the preferred locator type even if the object has Name or ID Attributes

...