Identification and Filter Functions
UFT can call functions that identify the root element of a control of a specific test object class. These functions are called only if the element being learned cannot be associated with a test object class using the information in the toolkit configuration file.
One technique for implementing JavaScript identification is to define a function for each test object class. These functions can identify the element being learned as the root element of the custom control or can identify another element as the root element. Single-class identification functions are all called until one of them returns a value other than false.
The second technique is a single function that handles all of the custom controls in the toolkit. A function of this type returns the test object class name of the element being learned. With this type of function, there is no way to specify that a different element is the root element. If the element being learned is not the root element of a custom control, the function returns null.
Only one of these two techniques can be used in a toolkit support set.
When UFT is learning an element, the token _elem represents that element.
This section includes: