Override an inherited locator
Because you cannot modify an inherited locator, if you want to make changes you can override the inherited locator by selecting a new Locator Method and interrupt the inheritance relationship. The new locator method has no settings so you are starting from scratch with the new locator. This means that you can make a restricted set of changes to this new locator without affecting the parent or any sibling classes that have also inherited the same locator. All changes must fit within the locator extraction type.
If there are any issues with the selected locator method warning messages are displayed on the Details pane.
Any inherited fields that are populated by the locator with the same name from the parent class automatically use this overridden locator instead.
You can override an inherited locator by following these steps:
- Expand the Project Tree and select the class that contains the locator you want to override.
-
Optionally,
view the class contents if they are not
already displayed.
The hidden class contents are displayed.
-
Select a value from the
Locator Method list.
The selected locator must have the same extraction group as the inherited locator.
If there are issues with the selected locator method and error is displayed on the locator details pane. These errors must be addressed in order to continue.
The locator method is updated and the inheritance relationship with its parent is interrupted. 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 .
-
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.
- Fully test your overridden locator to ensure that it behaves are expected.
Related topics: