The following sections present an overview of different spy tools to use in the event that you need to modify the Repository file manually.
The UISpy tool (for standard applications) can be used to obtain relevant information about the controls. The following figure shows the OK button on the About dialog box of Notepad. Three of the identification properties can be seen in the Properties frame. The ControlType property is implicit when Button is defined in the Repository. |
To inspect Web applications, any DOM inspector can be used (e.g., the Development Tools F12 in IE8). Inspection is activated by clicking the pointer icon in the toolbar. Then, when an element on the page is selected, its tree is displayed. Search for the relevant name or id, and copy it into the Repository. In the repository file, it is not necessary to maintain the same hierarchy. You can put all elements under the main web window, unless there are conflicts for this name under another container. In this case, you need to define a container (such as web Form) and place this element under this container. |