Filter\Learn Element

Description

The filtering rules for learning objects in UFT.

Attributes

NameTypeUseDefaultDescription
file_namestringoptional The file system path to the file containing the function. If no path is specified, the default file name defined in the Control\Settings element is used.

You can specify a path relative to the <UFT installation folder>\dat\Extensibility\Web\Toolkits\<Toolkit name> folder.

functionstringoptional The name of the implementation function.
learn_childrenstringoptionalYes

Indicates whether to learn the children of this control.

Possible values:

  • Yes
  • No
  • CallFilterFunc - the function specified in the function attribute performs the filtering.
learn_controlstringoptionalYesIndicates whether to learn this control.

Possible values:

Yes

No

IfChildren - learn control only if it has children.

typestringoptionaljavascriptThe type of implementation function.

Used By

Source

<xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema" name="Learn" minOccurs="0">
    <xs:annotation>
        <xs:documentation>The filtering rules for learning objects in UFT.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
        <xs:attributeGroup ref="ImpFuncAttrs" />
        <xs:attributeGroup ref="FilterAttrs" />
    </xs:complexType>
</xs:element>