Filter Function      


Identifies the children of the control to learn.


function <children to learn>()

Return Value

A safe array of the child objects to learn.


Define the name of the function in a Control\Filter\Learn element in the toolkit configuration file.


In this example, all child input elements are to be learned.

From the toolkit configuration file:


    <Learn learn_control="Yes" learn_children="CallFilterFunc" type="javascript" function="GetChildrenToLearn" />


Implementation of GetChildrenToLearn:

// This function instructs UFT to learn input child objects

// together with the object.

function GetChildrenToLearn()


    return toSafeArray( _elem.getElementsByTagName("input") );