Copy an inherited locator

Because you cannot modify an inherited locator, if you want to make changes to an inherited locator you can make a copy of that locator and interrupt the inheritance relationship. This means that you can make a restricted set of changes to the copy of the inherited locator without affecting the parent or any sibling classes.

If there are any issues with the locator copy an error message is displayed in the Details pane.

Any inherited fields that are populated by the locator with the same name from the parent class automatically use this copied locator instead.

You can copy an inherited locator by following these steps:

  1. Expand the Project Tree and select the class that contains the inherited locator you want to copy.
  2. Optionally, view the class contents if they are not already displayed.

    The hidden class contents are displayed.

  3. Select the locator in the Project Tree.

    The Details pane displays the selected locator.

  4. Click Copy Method to copy the locator and its settings from the parent class to the child class.

    A local copy of the locator method is created and the inheritance relationship with its parent is broken. The icon for this locator in the Project Tree is updated to match the locator method type. You are still not able to move, rename, or delete this field, even though you have interrupted the inheritance relationship.

  5. Modify the locator properties as needed.

    Any configuration issues are displayed as an error message on the Details pane. These errors must be addressed before continuing with your project configuration.

  6. Fully test your locator copy to ensure that it behaves are expected.