The test automation framework are created for simulating user activities on the particular platform. How the automation able to executes the steps which are defined by the testing developer which used the locator. So the locator is kind of ID of every elements that available on the particular page. The ID used by developer to locate the element and do something about it. For example; fj.SubmitPhoneNumber(this.data.get(‘user-mobile-number’));
Where user-mobile-number is the locator and SubmitPhoneNumber is the action.
The locator is help us to locate the element regardless the element location, however if the ID of the locator is change without the testing developer knows, it will break his/her test execution. As a result, this is when the self-healing capability took the place.