|
| 1 | +--- |
| 2 | +title: UI Automation Support (UI Accessibility) |
| 3 | +page_title: UI Automation Support (UI Accessibility) - RadTextBox |
| 4 | +description: UI Automation Support (UI Accessibility) for RadTextBox. |
| 5 | +slug: textbox-ui-automation |
| 6 | +tags: textbox,ui,automation |
| 7 | +published: True |
| 8 | +position: 10 |
| 9 | +--- |
| 10 | + |
| 11 | +# UI Automation Support |
| 12 | + |
| 13 | +With the __Q2 2025__ version of our controls, RadTextBox supports UI Automation. The current implementation of UI Automation for RadTextBox is similar to the MS WinForms TextBox Control implementation with some extended functionality. The main goal of this implementation is to ensure compliance with accessibility standards and to provide a common practice for automated testing. |
| 14 | + |
| 15 | +This functionality is enabled by default. To disable it, you can set the __EnableUIAutomation__ property to false. |
| 16 | + |
| 17 | + |
| 18 | +````C# |
| 19 | + |
| 20 | +this.radTextBox1.EnableUIAutomation = false; |
| 21 | + |
| 22 | +```` |
| 23 | +````VB.NET |
| 24 | + |
| 25 | +Me.RadTextBox1.EnableUIAutomation = False |
| 26 | + |
| 27 | +```` |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | +## Relevant Properties |
| 32 | + |
| 33 | +The table below outlines the __UI Automation__ properties most important for understanding and interacting with RadButton control. |
| 34 | + |
| 35 | +#### RadTextBox |
| 36 | + |
| 37 | +// To DO |
| 38 | + |
| 39 | +* AutomationElementIdentifiers.AutomationIdProperty.Id |
| 40 | +* AutomationElementIdentifiers.AcceleratorKeyProperty.Id |
| 41 | +* AutomationElementIdentifiers.AccessKeyProperty.Id |
| 42 | +* AutomationElementIdentifiers.BoundingRectangleProperty.Id |
| 43 | +* AutomationElementIdentifiers.ControlTypeProperty.Id |
| 44 | +* AutomationElementIdentifiers.LocalizedControlTypeProperty.Id => "textBox" |
| 45 | +* AutomationElementIdentifiers.HelpTextProperty.Id |
| 46 | +* AutomationElementIdentifiers.IsContentElementProperty.Id |
| 47 | +* AutomationElementIdentifiers.IsEnabledProperty.Id |
| 48 | +* AutomationElementIdentifiers.IsControlElementProperty.Id |
| 49 | +* AutomationElementIdentifiers.IsKeyboardFocusableProperty.Id |
| 50 | +* AutomationElementIdentifiers.NameProperty.Id |
| 51 | + |
| 52 | +## Supported Control Patterns |
| 53 | + |
| 54 | +The following section outlines the supported automation patterns for the __RadTextBox__ control and its constituent elements. |
| 55 | + |
| 56 | + |
| 57 | + |
0 commit comments