In short
- Download and install the application
- Use inspector to locate the target element
- Check different properties
- Limitations
Download and install the application
- Visit the official website and download the application for windows
website - Accessibility Insights for windows
- Open the application, here is how it looks, there are 3 important sections we need to know here-
- Inspect On/Off button
- Elements section
- Properties section
Accessibility Insights-
Use inspector to locate the target element
- Open the target application that you want to inspect elements for automation.
- Move the mouse to the element which you want to inspect. Say. The text area section where we can write the content.
- When you see the inspector box(blue border) covers the full element, move the mouse pointer quickly to the accessibility insights window to capture the property for the element.
Check different properties
Here you can see many properties in the properties section, most useful are as below-- Automation Id
- Name
- Help Text
- Class Name
- Control Type
You can notice the orange arrow in Elements section, it says that currently element under inspection.
The same time you will find the element related properties in the properties section.
I have highlighted couple of the properties here-
- AutomationId
- ClassName
Copy the value of the properties for the element and note them for the future reference. As we can use these properties for automation purpose.
Example.
- For AutomationId =15, we will use id=15 (in the automation script)
- For ClassName=Edit, we will use class_name=Edit.
- For Name=Edit, we will use text=Edit
- For HeltpText=EditButton, we will use help_text=EditButton
Example of the automation script statement-
Click Item text=Edit
Input Text In Textbox id=15
Wait Until Item Exists class_name=Edit
Additional settings-
If Automation Id or any other property is not visible in the properties section, here is the way to get it visible/enabled.
- Once you have the inspection element correctly selected in the Elements Section.
- You can click on the settings icon, and select the option "Include all the properties that have value"
- You can select some specific values by selecting the second option from the settings, and I will leave it for you to do the hands on.
- Now you can see all the properties that have values for a particular element.
Hope it helps!