Relevant for: GUI tests and components
When you run a statement containing a registered method, UFT sends the test object as the first argument. For this reason, your user-defined function must have at least one argument. Your user-defined function can have any number of arguments, or it can have only the test object argument.
If you register a user-defined function to override an existing test object method, then after the test object argument, the function must have the same number of arguments as the method it overrides.
Tip: You can use the parent to retrieve the parent of the object represented by the first argument in your function. For example:
ParentObj = obj.GetROProperty("parent")