What is event monitoring?
Event monitoring is a feature in Accessibility Insights for Windows that enables you to easily verify that a UI element in a Windows app:
- Responds as expected to user input.
- Generates the expected events.
How to use Inspect
Get ready to inspect
- Open Accessibility Insights for Windows.
- If you are not already in Live Inspect mode, select Inspect in the main navigation bar.
- In the command bar, for What to select, choose Element.
- Open the application you want to test (aka the target application).
Select an element
Select the UI element you wish to inspect:
- Use your mouse to hover over the element.
- Use your keyboard to set the input focus on the element.
In the target application, the selected element will be visually highlighted. In Accessibility Insights for Windows, in the Details tab, the element's control type and accessible name will be prominently displayed, followed by its Properties and supported Patterns (if any).
Pause selection (optional):
- When you have selected the element you wish to inspect, select Pause UIA Tree in the command bar.
- When you are ready to inspect a different element, select Resume UIA Tree in the command bar.
Verify that the element responds correctly to user input
In the Details tab, in the Patterns section, select Actions for the first pattern.
A dialog will open, with a tab for each action supported by the pattern. In this example, the pattern (SelectionPattern) has only one action (GetSelection), so the dialog has only one tab.
In each tab:
- Make sure that the selected element is in an appropriate state to perform the action.
- Where needed, provide an appropriate value for the action.
- Run the action.
- Verify that the action succeeded.
The dialog will update if the action succeeds. In this example, the GetSelection action returned the selected UI Element and a list of its properties.
Repeat steps 1 and 2 for each pattern listed in the Patterns section.
Verify that the element generates expected events
Learn about the required events for the element's control type.
Find the selected element in the UIA Tree, and select More options > Listen to Events.
A new Events view will open in Accessibility Insights for Windows. The view includes an Events table and two tabs, Details and Configuration. By default, the Events table is empty, and the Configuration tab is open.
Select the events you wish to record. (Expected events based on the control type are recorded by default.)
The Details tab will open automatically, and new events will appear in the Events table.
Interact with the element using your mouse or keyboard.
Verify that the element generates the required events.
Events generated by the selected element will be added to the Events table. In this example, selecting an item in the Species list (in the target application) generated a series of focus change events.