Filter\Learn Element

Description

The filtering rules for learning objects in UFT.

Attributes

Name Type Use Default Description
file_name string optional   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.

function string optional   The name of the implementation function.
learn_children string optional Yes

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_control string optional Yes Indicates whether to learn this control.

Possible values:

Yes

No

IfChildren - learn control only if it has children.

type string optional javascript The 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>