Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between AutomationProperties.AutomationID and AutomationProperties.Name?

Tags:

c#

testing

wpf

What is the difference between the two properties?

In what context is which property used?

Can you also provide a code example for each?

like image 576
Lernkurve Avatar asked May 27 '10 12:05

Lernkurve


People also ask

What is Automationproperties AutomationId?

AutomationIdProperty uniquely identifies a UI Automation element from its siblings. For more information on property identifiers related to control identification, see UI Automation Properties Overview.

What is AutomationId?

The AutomationId property used to define the unique string and it helps to identify the specified element in Automation testing process and perform recorded action. For example, you are setting AutomationId for RibbonTab. The following code demonstrates the same. XAML.

What is AutomationId in xamarin forms?

What is AutomationId in Xamarin. Forms? AutomationId is a property of the Element class that gets or sets a string value that allows the automation framework to find and interact with elements using the value.


1 Answers

AutomationProperties.Name is a descriptive name for the control that can be evaluated by automation clients it doesn't have to be unique.

AutomationProperties.AutomationId is the ID for the control that uniquely identifies it across the whole UI.

like image 123
bitbonk Avatar answered Sep 27 '22 20:09

bitbonk