Hello,
I'm having trouble reading the UI Automation elements for ultraCombo that have collections in the DataSource.
As you can see from the first image in the attachment, the automation information retrieved is the entire table, rather than just the element hovered over. What's more, the dropdown of the ultraCombo does not have the ultraCombo as its parent.
This problem occurs when I set the UltraControlBase.UIAutomationForCodedUITestingEnabled to false. As you can see in the second image, when set to true, the automation elements function normally.
However, I'm obliged to set the UIAutomationForCodedUITestingEnabled to false for other reasons in the application. Hence my question: Is there a way to have normal operation of automation elements with the parameter UltraControlBase.UIAutomationForCodedUITestingEnabled = false ?
Thank you for your attention.
Hi Andrew,
When UltraControlBase.UIAutomationForCodedUITestingEnabled is set to True I'm having problems capturing the accessibility properties that are defined in my application.
With UIAutomationForCodedUITestingEnabled = false, the “LegacyIAccessible.Name” of Inspect.exe in UI Automation mode is correctly captured and set to the value specified in the “AccessibleName” property.
With UIAutomationForCodedUITestingEnabled = true, the “LegacyIAccessible.Name” of Inspect.exe in UI Automation mode is not captured, it remains empty.
Hello Luc,
In order to use CodedUI / UI Automated testing with the Infragistics for Windows Forms toolset, you will need to have the UltraControlBase.UIAutomationForCodedUITestingEnabled set to true. If you set this to false, the UIAutomationProviders for the controls will be ignored and will not be created. This will prevent the automated testing recordings from working correctly.
What is the reason you are setting the UIAutomationForCodedUITestingEnabled property to false?
Please let me know if you have any other questions or concerns on this matter.