About signatures
Signatures contain XML Path Language - a language that facilitates XML document navigation to select elements and attributes.
Signatures have a hierarchical structure or a tree representation of an XML document. You can navigate around the list items and select list items by various criteria. From this tree, you can access the elements, attributes, and list items of your .XML document.
Most elements that are recognized by AccessProfiles are part of a hierarchical structure. The signatures use the positioning of the element in the hierarchy, as well the properties of the element itself to correctly identity the element.
For example, you can specify an edit control in a login window by writing a signature, which not only refers to the properties of the control (for example, control ID), but also the property of its parent login window (for example, title).
- executable files
Example: /child::exe[@exe_name="companypager.exe"]
Matches exes with name companypager.exe.
- window
elements (such as: edit control, buttons, and check
box)
Example: /child::wnd[@title="Login to CM"]/ child::wnd[@class_name#".*BUTTON.*"]
Matches windows with title Login to CM and selects the descendant windows with class name that matches the regular expression .*BUTTON.* (# is for not case-sensitive match).
- Web pages
Example: /child::web[@domain="www.example.com" and @protocol=" http"]
Matches web pages from the URL with domain part equal to www.example.com and protocol equal to http.
- HTML elements (such
as: submit buttons, input controls, so
on.)
Example: /descendent::html[@tag_name="form" and @name=""]/descendent::html[@tag_name="input" and @name="Passwd" and @type="password"]
The first HTML refers to the head or the body, after that a form descendant is found and then a descendant of that form of tag-name input and type password is searched.
- Java™ window elements
(such as: title, class name, window position, visibility status, size,
so on.)
Example: /child::jwnd[@title="Login" and @class_name="MyJFrame"]
Matches windows with title Login and class name MyJFrame.
These signatures can be edited in the AccessProfile Generator (for standard AccessProfiles), General Properties tab and XML Editor (for advanced AccessProfiles).