Feature Availability: ACCELQ Release 5.0
Windows Element Inspector
ACCELQ Windows Element Inspector helps to inspect Windows UI element properties. These properties are helpful to formulate Selectors for the elements used in the Action logic.
You can download the Inspector from the link here.
Capturing Element Properties
ACCELQ supports 3 types of element properties for Windows UI:
ACCELQ will analyze the element and print the properties in the Inspector panel.
These properties are displayed in 3 columns for each of the supported framework types. Each set of these properties include the following sections:
- First section displays the element's own attributes.
- Second section displays attributes of the parent (window).
- Third section displays attributes of child elements within the inspected area. This section is available only for the UIA framework.
Selecting appropriate attributes for element identification
Choose a subset of meaningful properties from a framework type that may be most appropriate for the captured element. Each attribute is presented as a key-value pair in the Inspector. The following table shows the most common properties used in element identification.
|Framework type||Widely used attributes|
UIA framework properties work for most of the cases.
|MSAA||role_name, name, value are commonly used attributes|
|WIN32||class_name, title, rich_text are commonly used attributes|
Here are some additional tips to help you choose the right attributes:
- While trying to identify a Window element, look for properties under the parents section. Here are some common attribute combinations:
- UIA: selectors with control_type="Window" and title with expected text
- MSAA: selectors with role_name=Window and name with expected text
- Check whether element-related textual data exists in the selector. For example, if you are capturing the notepad element, then as you can see, UIA properties are not going to serve. It does not show the text that is expected of this element.
- If an attribute value seems dynamic, feel free to use a regular expression pattern.