Tag Finder Properties

This topic describes the properties to use to configure a Tag Finder.

Find Where

Specifies where to find the tag relative to a named tag. The default value is "Anywhere in Page," meaning that named tags are not used to find the tag.

Tag Path

The tag path as described in Tag Paths.

Attribute Name

The tag must have a specific attribute, for example "align."

Attribute Value

The tag must have an attribute with a specific value. If the Attribute Name property is set, the attribute value is bound to that specific attribute name.

These values are case-sensitive.

  • "Equals Text" specifies that the attribute value must match a specified text. Note that the text must match the entire attribute value.
  • "Contains Text" specifies that the attribute value must contain a specified text.
  • "Starts With Text" specifies that the attribute value must start with a specified text.
  • "Ends With Text" specifies that the attribute value must end with a specified text.
  • "Matches Pattern" specifies that the attribute value must match a specified pattern. Note that the pattern must match the entire attribute value.
  • "Does Not Equal Text" specifies that the attribute value must not be equal to a specified text.
  • "Does Not Contain Text" specifies that the attribute value must not contain a specified text.
  • "Does Not Start With Text" specifies that the attribute value must not start with a specified text.
  • "Does Not End With Text" specifies that the attribute value must not end with a specified text.
  • "Does Not Match Pattern" specifies that the attribute value must not match a specified pattern.
Tag Pattern

A pattern that the tag must match (including all tags inside it), for example ".*<b>.*Stock Quotes.*</b>.*". Some caution should be observed in using this property, as it can have considerable impact on the performance of your robot. This is because the Tag Pattern may be applied many times throughout a page just to find the one tag that it matches. One way to try and avoid this is to choose Text Only for the Match Against property.

Match Against

The Tag Pattern should match only the text or the entire HTML of the tag. The default is to match only the text because this is normally much faster.

Tag Depth

Determines which tag to use if matching tags are contained inside each other. The default value is Any Depth. This value accepts all matching tags. If you select Outermost Tag, only the outermost tags are accepted, and similarly, if you select Innermost Tag, only the innermost tags are accepted.

Tag Number

Determines which tag to use if more than one tag matches the tag path and the other criteria. You specify the number of the tag to use, either counting forwards from the first tag or counting backwards from the last tag that matches. For example, if you set the tag path to "table," the Tag Attribute property to "align=center," and the Tag Pattern property to ".*Business News.*," then the Tag Finder would locate the first <table>-tag that is center aligned and that contains the text "Business News."