Declaring an Element Using the UI Automation Technology
You can declare elements on a screen of an application using the UI Automation technology.
For general information on this topic, see Declare an Element.
Set Element Criteria
Element criteria are used by the UI Automation technology as follows:
-
An element will target the first DOM component that matches its criteria.
-
If an element is multiple, it will target all of the DOM components that match its criteria.
-
Precise enough to match the desired component.
-
Broad enough to still work if the DOM changes.
Elements are usually declared for controlling purposes. You can also use elements to aid page recognition by setting Must exist or Must not exist parameters.
-
You can use operators to define the values of properties.
-
You must declare at least one recognition criterion.
-
You can use OR to define a combination of criteria on each property.
Best Practices
To capture hidden elements, you must expand the elements before capturing the application.
Advanced Parameters
You can use the following advanced parameter when declaring an element using the UI Automation technology:
Automatic capture on polling
This option allows elements to be automatically captured on polling, their latest value being available for every event. By default, this option is set to No.