A window declaration specifies a cross-platform, logical name for a GUI object, called the identifier, and maps the identifier to the object’s actual name, called the tag or locator. You can use locator keywords, rather than tags, to create scripts that use dynamic object recognition and window declarations. Or, you can include locators and tags in the same window declaration.
To record window declarations that include locator keywords, you must use the Open Agent.
To record window declarations using the Locator Spy:The Locator text box displays the XPath query string for the object on which the mouse rests. The Locator Details section lists the hierarchy of objects for the locator that displays in the text box. The hierarchy listed in the Locator Details section is what will be included in the INC file.