Sometimes it is not obvious which GUI toolkit a program running on Windows has been built with. In such cases it is not clear which Squish edition is appropriate for testing the application.
Using Inspect to get object information via UI Automation¶
Once started (make sure to configure
Inspect via its toolbar as shown in the screenshot of its window further below)
Inspect highlights the currently focused control, as shown here for the German version of the notepad.exe application:
Inspect highlights the desired control one can inspect the information the information that is available for this control via the UI Automation inside of
Inspect itself, on the right hand side:
The most interesting properties tend to be
Using AU3_Spy to get information about GUI¶
Using UISpy to get information about the GUI¶
This information can sometimes be used by froglogic to determine the GUI toolkit used by an application, and thus which Squish edition should be used for testing it.
Let’s take Microsoft’s Notepad application as an example, and in particular, suppose we want to learn more about its Font dialog. The first step is to start the application and open the dialog we are interested in:
Then we start UISpy:
As you can see, it lists the Notepad window as well.
Next we select the entry for Notepad (feel free to expand it, too):
Then we choose to save the selected node (and all its sub-nodes):