index > Microsoft UI Automation > AutomationID and Templates

AutomationID and Templates


I want to access elements which are dinamically generated through a template:

I define the following ListBox

<ListBox
Elia Noris

Have you tried setting the AutomationID via the ItemContainerStyle? You can just use a setter in the ItemContainerStyle for AutomationProperties.AutomationID.

Peter Donnelly - MSFT
reply 2

You can use google to search for other answers

 

More Articles

• Tree Walker - missing control elements
• control ids
• C++ API Problems
• Custom control patterns
• System.Xml.XmlException: '0' is an unexpected token. ???
• Problem with TreeScope in Automation.AddAutomationEventHandler
• Test Automation for WPF apps
• Automation.AddAutomationEvent and WinForms
• Unable to set focus on a list item
• How to get the font information of text in winForm
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

• Custom control patterns
• n00b vs. UI Automation
• MenuStrip is still missing from UISpy
• control ids
• AutomationID and Templates
• The road to IE Automation.
• Radio Button Automation in WPF
• Automate testing Website using C#
• Welcome to Microsoft UI Automation Forum
• Re: problem with Removing Menubar and To
• Hello UIAutomation World with WPF
• How to close multiple dialgs opened by o
• Problem with MSAA and C#
• Name property empty???
• Thread Synchronization between Automatio

Hot Articles

• problems with vista 5365
• ClientSideProviders
• control ids
• Unable to set focus on a list item
• UI Automation for automated GUI testing?
• Preventing UI Automation access to an ap
• Accessibilty
• Automation element for PasswordBox
• uiAccess
• Tree Walker - missing control elements
• Automation Unit Testing
• Welcome to Microsoft UI Automation Forum
• Radio Button Automation in WPF
• UISpy missing from the February CTP
• Attchment Contorl - UI Automation

Recommend Articles

• Problem with MSAA and C#
• The road to IE Automation.
• Name property empty???
• complexity of finding UI elements with T
• UISpy missing from the February CTP
• UIA and WinForms 2.0
• Attchment Contorl - UI Automation
• Automation element for PasswordBox
• AutomationID and Templates
• UI Automation on Web Browser(IE)
• Tree Walker - missing control elements
• UI automation vs. Input classes (Keyboar
• Thread Synchronization between Automatio
• Extracting text from Third Party Controls
• Documentation and ObjectFromPoint?