Introduction to Windows Spy Utility
Estimated reading time: 2 minutes
Starting in Katalon Studio version 7.0, you can spy objects on a Windows desktop application.
Spying Windows objects
To start spying a Windows object, click Spy Windows Object icon on the main toolbar of Katalon Studio.
Spy Windows Objects dialog box is basically similar to the one for
Mobile Object Spy.
In the CONFIGURATIONS section:
Configuration: where you can view and edit the
Application File: the absolute path to the
Windows Executable File (*.exe)of the testing machine. For Windows users, click Browse... button to locate the application file.
The Start button is to be enabled after the Application File text box is filled.
When the application starts, Katalon Studio starts capturing all available Windows objects on the current screen of the testing machine and shows them at the ALL OBJECTS section.
The SCREEN OBJECTS section shows a tree of all captured Windows elements. Each item represents a Windows element. Its label is a combination of the Windows Element (blue text) and its tag name (black text). When an item is selected, its position is highlighted on the nearby Device View. This helps you easily identify the right object.
To add a Windows element to the Object Repository, first you need to check the checkbox on the left of the desired Windows element, then it is added to the CAPTURED OBJECT section.
The CAPTURED OBJECT section shows all of the captured Windows elements that you want to add to the Object Repository. When an item is selected, its information is displayed in the OBJECT PROPERTIES section. You can view and edit the object's name, locator and properties before adding it to the Object Repository.
- Object Name: the edited Windows object's name.
- Locator Strategy and Locator: the locator to identify the Windows element.
- Properties table: all attributes of the captured elements.
After the desired Windows objects are added, they will be shown under the Object Repository folder of the Tests Explorer.
Windows Object Part
The Windows Object part is where to display the Locator and properties of a Window Object.
- Locator: all locators supported by WinAppDriver will also be supported by Katalon Studio . Please read this document for more details.
- Object Properties: the properties of the Windows Object captured in the Spy or Record sessions. You can also modify these properties.