Returns a locator for this object.
The locator is created in the same way it is created during recording.
result = testObject.GenerateLocator()